I just did a nix flake update
followed by a sudo nixos-rebuild switch --flake .#nixos-dell
, and I get this error:
➜ dotfiles-dell git:(master) ✗ ./apply-system.sh
warning: Git tree '/home/stian/devp/dotfiles-dell' is dirty
building the system configuration...
warning: Git tree '/home/stian/devp/dotfiles-dell' is dirty
error: safeeyes should use `buildPythonPackage` or `toPythonModule` if it is to be part of the Python packages set.
(use '--show-trace' to show detailed location information)
I can show the --show-trace
output if that helps. The updated flake.lock looks like this:
{
"nodes": {
"home-manager": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1667469118,
"narHash": "sha256-2YrDEmeYKCDOCuDDrjHoaUOVO3hyh9cIrWAJET1HPg8=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "d78b3488a76d251701ab58a9b7f0dd092b806c1e",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "release-22.05",
"repo": "home-manager",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1667482890,
"narHash": "sha256-pua0jp87iwN7NBY5/ypx0s9L9CG49Ju/NI4wGwurHc4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "a2a777538d971c6b01c6e54af89ddd6567c055e8",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-unstable",
"type": "indirect"
}
},
"root": {
"inputs": {
"home-manager": "home-manager",
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}
By looking in my nix store, I see these:
➜ dotfiles-dell git:(master) ✗ ll /nix/store | grep safeeyes
-r--r--r-- 1 root root 5.6K Jan 1 1970 11ncfab368xckdgh0aqksazpa8sglfbj-safeeyes-2.1.3.drv
dr-xr-xr-x 6 root root 4.0K Jan 1 1970 6a45z09zf6f1mgg7r4f39pbx57cnyrzf-safeeyes-2.1.3
-r--r--r-- 1 root root 2.8K Jan 1 1970 bn340bc19jyiznjj6ny6gs7mv088mbd7-safeeyes-2.1.3.tar.gz.drv
-r--r--r-- 1 root root 2.8K Jan 1 1970 j5ipkdcdli6dmiy0rk889bizgrzpm03y-safeeyes-2.1.3.tar.gz.drv
-r--r--r-- 1 root root 5.8K Jan 1 1970 wspmzmlknkdqzwh7n45lzn698gwkmilf-safeeyes-2.1.3.drv
From googling I found that there’s a command nix-store --query --referrers-close /nix/store/something
which if I understand it correctly shows which other packages depend upon it. Trying that, I see this:
➜ dotfiles-dell git:(master) ✗ nix-store --query --referrers-closure /nix/store/6a45z09zf6f1mgg7r4f39pbx57cnyrzf-safeeyes-2.1.3 | cat
/nix/store/6a45z09zf6f1mgg7r4f39pbx57cnyrzf-safeeyes-2.1.3
/nix/store/x6r7wzba6sk6bdiqpyb0a08903yzc0i5-system-path
/nix/store/1z7202b0j50a3laikiyazdbk34wl5ps5-dbus-1
/nix/store/4fhn3sz5r3l8rqway9si0n9mi7akn006-unit-dbus.service
/nix/store/h7gdzzwiv3dldbcnmq1lv2yijjpzhh8s-unit-accounts-daemon.service
/nix/store/s8aflynwy2wmpw38cqgzzyxwwvhga82c-unit-systemd-fsck-.service
/nix/store/x0hzc85gfzil16s6mxaf29k2qzrc9nnw-unit-polkit.service
/nix/store/92y7vc0jva0am6a9v2pm0gq8sydk14gi-system-units
/nix/store/wz59bjxi5z2xjk0yfiyl62g71vkk1w80-unit-dbus.service
/nix/store/r51azry07bmz37cbba8yr44vqippq904-user-units
/nix/store/rg8bdfbic6qigsan3pgxn4laivhkapy5-system-units
/nix/store/rabx3iqx9nqabbv7q1gydg8zrf6jks2p-etc
/nix/store/a49maqasf1y07wc2bqvmck0wzzclcww3-nixos-system-nixos-dell-22.11.20221015.83b198a
/nix/store/c9xw3bnki85lpmzv3xy8ky90cwk8fqgb-etc
/nix/store/rac5rr43s04qnr7nf53ab2343dmf7m8m-nixos-system-nixos-dell-22.11.20221015.83b198a
By looking at my current system:
➜ dotfiles-dell git:(master) ✗ ll /run/current-system
lrwxrwxrwx 1 root root 90 Nov 5 13:01 /run/current-system -> /nix/store/rac5rr43s04qnr7nf53ab2343dmf7m8m-nixos-system-nixos-dell-22.11.20221015.83b198a
which is the same as the last line in the previous nix-store command, I’m convinced that my current system depends on safeeyes. And it seems to be due to the system itself, not some package that I have defined in in my configuration.nix.
My questions:
- Is my above analysis correct?
- How could I begin to solve this?
- Can I tell
nix flake update
to try a version that’s a bit older? So that I don’t get the very newest, which has this thing that fails, but a slightly older one?
Thanks!