blob: b19bb34dbd742460e204da6126b71dd5d57133b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
_: pkgs:
rec {
pinnedDeps = builtins.attrNames
(builtins.removeAttrs pkgs.sources ["__functor"]);
overridePinnedDeps = builder: pkgs.lib.genAttrs pinnedDeps builder;
# Modifies a derivation with our source and version, keeping old build
# rules. This will fail if build steps have changed, or if no build
# rules are available upstream..
overrideSource = name: pkgs.${name}.overrideAttrs (old: old // rec {
name = "${name}-${version}";
version = pkgs.sources.${name}.version or pkgs.sources.${name}.rev;
src = pkgs.sources.${name};
});
}
|