Commit bb3525c208e8

Vincent Demeester <vincent@sbr.pm>
2026-01-20 09:09:28
fix(nix): resolve system attribute deprecation warnings
Replace deprecated 'inherit system' with explicit 'system = system' in flake outputs and 'system = prev.stdenv.hostPlatform.system' in overlays to fix evaluation warnings about 'system' being renamed to 'stdenv.hostPlatform.system'. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 5b4bad5
Changed files (2)
overlays/default.nix
@@ -39,9 +39,9 @@ in
 
   # When applied, the unstable nixpkgs set (declared in the flake inputs) will
   # be accessible through 'pkgs.unstable'
-  unstable-packages = final: _prev: {
+  unstable-packages = final: prev: {
     master = import inputs.nixpkgs-master {
-      inherit (final) system;
+      system = prev.stdenv.hostPlatform.system;
       config.allowUnfree = true;
       overlays = [
         (_final: _prev: {
@@ -59,7 +59,7 @@ in
       ];
     };
     unstable = import inputs.nixpkgs {
-      inherit (final) system;
+      system = prev.stdenv.hostPlatform.system;
       config.allowUnfree = true;
       overlays = [
         (_final: _prev: {
@@ -70,7 +70,7 @@ in
       ];
     };
     wip = import inputs.nixpkgs-wip-consolidated {
-      inherit (final) system;
+      system = prev.stdenv.hostPlatform.system;
       config.allowUnfree = true;
     };
   };
flake.nix
@@ -190,7 +190,7 @@
         system:
         let
           pkgs = import inputs.nixpkgs {
-            inherit system;
+            system = system;
             config.allowAliases = false;
             overlays = [
               self.overlays.additions
@@ -233,7 +233,7 @@
               name = "Emacs Lisp byte-compile";
               entry =
                 let
-                  pkgs = import inputs.nixpkgs { inherit system; };
+                  pkgs = import inputs.nixpkgs { system = system; };
                   # Create a wrapper that runs Emacs byte-compilation
                   elisp-check = pkgs.writeShellScript "elisp-check" ''
                     ${pkgs.emacs}/bin/emacs --batch \
@@ -262,7 +262,7 @@
         default =
           let
             pkgs = import inputs.nixpkgs {
-              inherit system;
+              system = system;
               config.allowUnfree = true;
             };
           in