I don’t understand why nix is pulling in version 1.8.0 rather than 1.8.2 of ags here. Can someone help me understand why? I’m not exactly sure what info is needed to troubleshoot further but here’s what I think is relevant:
I’m on unstable
❱ sudo nix-channel --update
unpacking channels...
❱ sudo nix-channel --list
nixos https://nixos.org/channels/nixos-unstable
(I installed nix-search using nix-shell which is why my prompt changes)
ags shows the latest version is 1.8.2
[nix-shell:~]$ nix-search ags
ags @ 1.8.2 : ags
...
But nix-shell drags down 1.8.0
[nix-shell:~]$ nix-shell -p ags
these 4 paths will be fetched (13.16 MiB download, 97.49 MiB unpacked):
/nix/store/665v5rrjsi09r4fzpacbjdx5m4zdimpv-ags-1.8.0
/nix/store/byzgqrv5h8m53y2w08ihv3m5yvjzjgcc-gjs-1.78.4
/nix/store/qnb5ng8dvgqr2fbvhlxy5nfvf1sgcrk6-glib-networking-2.78.1
/nix/store/m1v8ajc5b7vql0lw1hbwd6zfca6jip31-spidermonkey-115.9.1
copying path '/nix/store/qnb5ng8dvgqr2fbvhlxy5nfvf1sgcrk6-glib-networking-2.78.1' from 'https://cache.nixos.org'...
copying path '/nix/store/m1v8ajc5b7vql0lw1hbwd6zfca6jip31-spidermonkey-115.9.1' from 'https://cache.nixos.org'...
copying path '/nix/store/byzgqrv5h8m53y2w08ihv3m5yvjzjgcc-gjs-1.78.4' from 'https://cache.nixos.org'...
copying path '/nix/store/665v5rrjsi09r4fzpacbjdx5m4zdimpv-ags-1.8.0' from 'https://cache.nixos.org'...
Thanks for reading
TLATER
July 22, 2024, 7:35am
2
You might have an outdated user channel. What does nix-channel --list
without sudo say?
No output, so nothing set
$ nix-channel --list
$ echo $?
0
TLATER
July 22, 2024, 2:08pm
4
Fascinating, anything in $NIX_PATH
? Anything in ~/.config/nix
?
Can you run:
nix-shell -p nix-info --command 'nix-info -m'
And paste the output, too?
Sure…
❱ echo $NIX_PATH
/etc/nix/path
❱ ls -l ~/.config/nix
ls: cannot access '/home/oliver/.config/nix': No such file or directory
❱ nix-shell -p nix-info --command 'nix-info -m'
- system: `"x86_64-linux"`
- host os: `Linux 6.6.27, NixOS, 24.05 (Uakari), 24.05.20240416.5672bc9`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.2`
- channels(root): `"nixos"`
- nixpkgs: `/etc/nix/path/nixpkgs`
TLATER
July 22, 2024, 3:35pm
6
That’s overriding your channels. Where is that getting set?
2 Likes
I started out with the templates from nix-starter-configs/standard/nixos at main · Misterio77/nix-starter-configs · GitHub which I now see had an update a couple of months ago with a commit message of ‘add $NIX_PATH workaround’
It mentions Broken `NIX_PATH` tracking issue · Issue #9574 · NixOS/nix · GitHub
So, I’m sure you’re right. I’ll modify things later on and cross my fingers that I’m not introducing a new problem.
Thanks for your responses and useful commands
Huzzah, all is working. Thanks so much for all your help.
[nix-shell:~]$ ags --version
1.8.2
I modified my version of the configuration where nixPath was being set and on a nixos-rebuild switch suddenly had 5GB of updates and some warnings about config names changing. I fixed those and all is good.
3 Likes