diff --git a/impure.nix b/impure.nix index 5f26947d4..7430936c2 100644 --- a/impure.nix +++ b/impure.nix @@ -10,7 +10,7 @@ let mkNixpkgs = import ./pkgs/by-name/nixpkgs-bootstrap/mkNixpkgs.nix {}; mkPkgs = branch: args: ( - mkNixpkgs (args // { inherit branch; }) + (mkNixpkgs (args // { inherit branch; })).pkgs ).extend (import ./overlays/all.nix); pkgs = mkPkgs "master" { inherit localSystem; }; inherit (pkgs) lib; diff --git a/pkgs/by-name/nixpkgs-bootstrap/mkNixpkgs.nix b/pkgs/by-name/nixpkgs-bootstrap/mkNixpkgs.nix index 63333790a..77cfe4e5e 100644 --- a/pkgs/by-name/nixpkgs-bootstrap/mkNixpkgs.nix +++ b/pkgs/by-name/nixpkgs-bootstrap/mkNixpkgs.nix @@ -91,17 +91,16 @@ let } // args'); } else - # N.B.: this is crafted to allow `nixpkgs.FOO` from other nix code - # AND `nix-build -A nixpkgs` patchedSrc.overrideAttrs (base: { # attributes needed for update scripts inherit version; pname = "nixpkgs"; - passthru = (base.passthru or {}) // nixpkgs // { + passthru = (base.passthru or {}) // { # override is used to configure hostPlatform higher up. override = overrideArgs: mkNixpkgs (args // overrideArgs); - # N.B.: src has to be specified in passthru, not the outer scope, so as to take precedence over the nixpkgs `src` package + pkgs = nixpkgs; + src = { # required by unstableGitUpdater gitRepoUrl = "https://github.com/NixOS/nixpkgs.git"; diff --git a/pkgs/default.nix b/pkgs/default.nix index 1cb5ea8e9..2cced0d58 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -54,9 +54,6 @@ let }); ### aliases - # nixpkgs = nixpkgs-bootstrap.master; - # nixpkgs-staging = nixpkgs-bootstrap.staging; - # nixpkgs-next = nixpkgs-bootstrap.staging-next; inherit (trivial-builders) copyIntoOwnPackage deepLinkIntoOwnPackage