nixpkgs: get the updateScripts to be populated into me update.pkgs.*
attrs
This commit is contained in:
@@ -65,18 +65,24 @@ let
|
|||||||
# so avoid specifying hostPlatform.system on non-cross builds, so i can use upstream caches.
|
# so avoid specifying hostPlatform.system on non-cross builds, so i can use upstream caches.
|
||||||
crossSystem = system;
|
crossSystem = system;
|
||||||
} else {});
|
} else {});
|
||||||
|
|
||||||
|
nixpkgs = import "${src}" args;
|
||||||
in
|
in
|
||||||
# N.B.: this is crafted to allow `nixpkgs.FOO` from other nix code
|
# N.B.: this is crafted to allow `nixpkgs.FOO` from other nix code
|
||||||
# AND `nix-build -A nixpkgs`
|
# AND `nix-build -A nixpkgs`
|
||||||
(import "${src}" args) // src // {
|
if src ? overrideAttrs then
|
||||||
# attributes needed for update scripts
|
src.overrideAttrs (base: {
|
||||||
name = "nixpkgs";
|
# attributes needed for update scripts
|
||||||
version = "24.05-unstable-2024-06-xx";
|
pname = "nixpkgs";
|
||||||
src = unpatchedSrc // (if builtins.isAttrs unpatchedSrc then {
|
version = "24.05-unstable-2024-06-xx";
|
||||||
inherit (lock') rev;
|
passthru = (base.passthru or {}) // nixpkgs // {
|
||||||
} else {});
|
src = unpatchedSrc // {
|
||||||
} // (if nix-update-script != null then {
|
inherit (lock') rev;
|
||||||
passthru.updateScript = nix-update-script {
|
};
|
||||||
extraArgs = [ "--version" "branch" ];
|
updateScript = nix-update-script {
|
||||||
};
|
extraArgs = [ "--version" "branch" ];
|
||||||
} else {})
|
};
|
||||||
|
};
|
||||||
|
})
|
||||||
|
else
|
||||||
|
nixpkgs
|
||||||
|
Reference in New Issue
Block a user