I am upgrading from NixOS 23.05 to 24.05. I did
sudo nix-channel --add https://channels.nixos.org/nixos-24.05 nixos
sudo nix-channel --update
These went okay. I then did
sudo nixos-rebuild switch
This produced the error
error: function 'anonymous lambda' called without required argument 'version'
at /nix/store/cm6w0m72agl0jmixkbjv4fk2mb3wvps8-nixos-24.05/nixos/pkgs/build-support/emacs/generic.nix:25:1:
24|
25| { pname
| ^
26| , version
I am installing the Emacs package through configuration.nix, and the above error message seems to indicate a problem related to that package. Please help. Thank you,
The error seems to be due to fogotten references to 23.05 in configuration.nix. Once those were replaced with the corresponding 24.05 details, the build worked without errors.
$ git diff --unified=0
diff --git a/configuration.nix b/configuration.nix
index 6e2545f..fca18b3 100644
--- a/configuration.nix
+++ b/configuration.nix
@@ -8 +8 @@
- system.stateVersion = "23.05";
+ system.stateVersion = "24.05";
@@ -23,2 +23,2 @@
- url = "https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz";
- sha256 = "0rwzab51hnr6cmm1w5zmfh29gbkg6byv8jnr7frcv5kd6m8kna41";
+ url = "https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz";
+ sha256 = "00wp0s9b5nm5rsbwpc1wzfrkyxxmqjwsc1kcibjdbfkh69arcpsn";
@@ -160 +160 @@
- home.stateVersion = "23.05";
+ home.stateVersion = "24.05";
$ sudo nixos-rebuild switch
[sudo] password for raghnysh:
building Nix...
building the system configuration...
activating the configuration...
setting up /etc...
reloading user units for raghnysh...
restarting sysinit-reactivation.target
$