don’t use content-addressed derivations (for now)
This commit is contained in:
parent
52a9aedf51
commit
bf388af66e
1 changed files with 15 additions and 18 deletions
|
@ -1,4 +1,4 @@
|
||||||
system: { nixpkgs, ... } @ args: rec {
|
system: {nixpkgs, ...} @ args: rec {
|
||||||
inherit (builtins) toFile;
|
inherit (builtins) toFile;
|
||||||
|
|
||||||
allPrebuilds = builtins.path {
|
allPrebuilds = builtins.path {
|
||||||
|
@ -8,21 +8,18 @@ system: { nixpkgs, ... } @ args: rec {
|
||||||
|
|
||||||
prebuilts = "${allPrebuilds}/${system}";
|
prebuilts = "${allPrebuilds}/${system}";
|
||||||
|
|
||||||
baseDerivation = { script, ... } @args: builtins.derivation (args // {
|
baseDerivation = {script, ...} @ args:
|
||||||
__contentAddressed = true;
|
builtins.derivation (args
|
||||||
outputHashMode = "recursive";
|
// {
|
||||||
outputHashAlgo = "sha256";
|
|
||||||
inherit system;
|
inherit system;
|
||||||
builder = "${prebuilts}/busybox";
|
builder = "${prebuilts}/busybox";
|
||||||
|
PATH = "${prebuilts}";
|
||||||
args = [
|
args = [
|
||||||
"sh"
|
"sh"
|
||||||
(toFile "${args.name}-builder.sh" (
|
(toFile "${args.name}-builder.sh" ''
|
||||||
''
|
|
||||||
set -ex
|
set -ex
|
||||||
export PATH=${prebuilts}
|
|
||||||
eval "$script"
|
eval "$script"
|
||||||
''
|
'')
|
||||||
))
|
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue