refactor: impure.nix calculates localSystem
for itself; avoid duplication since otherwise integrations/nix-update/default.nix would need to add that too
This commit is contained in:
@@ -2,6 +2,4 @@
|
|||||||
let
|
let
|
||||||
sane-nix-files = import ./pkgs/by-name/sane-nix-files/package.nix { };
|
sane-nix-files = import ./pkgs/by-name/sane-nix-files/package.nix { };
|
||||||
in
|
in
|
||||||
import "${sane-nix-files}/impure.nix" ({
|
import "${sane-nix-files}/impure.nix" args
|
||||||
localSystem = builtins.currentSystem;
|
|
||||||
} // args)
|
|
||||||
|
@@ -4,7 +4,9 @@
|
|||||||
# race conditions or eval failures.
|
# race conditions or eval failures.
|
||||||
#
|
#
|
||||||
# see default.nix for a wrapper around this with better purity guarantees.
|
# see default.nix for a wrapper around this with better purity guarantees.
|
||||||
{ localSystem }:
|
{
|
||||||
|
localSystem ? builtins.currentSystem,
|
||||||
|
}:
|
||||||
let
|
let
|
||||||
mkPkgs = branch: args: (
|
mkPkgs = branch: args: (
|
||||||
(import ./pkgs/by-name/nixpkgs-bootstrap/${branch}.nix {}).override args
|
(import ./pkgs/by-name/nixpkgs-bootstrap/${branch}.nix {}).override args
|
||||||
|
Reference in New Issue
Block a user