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;
|
||||
|
||||
allPrebuilds = builtins.path {
|
||||
|
@ -8,21 +8,18 @@ system: { nixpkgs, ... } @ args: rec {
|
|||
|
||||
prebuilts = "${allPrebuilds}/${system}";
|
||||
|
||||
baseDerivation = { script, ... } @args: builtins.derivation (args // {
|
||||
__contentAddressed = true;
|
||||
outputHashMode = "recursive";
|
||||
outputHashAlgo = "sha256";
|
||||
inherit system;
|
||||
builder = "${prebuilts}/busybox";
|
||||
args = [
|
||||
"sh"
|
||||
(toFile "${args.name}-builder.sh" (
|
||||
''
|
||||
set -ex
|
||||
export PATH=${prebuilts}
|
||||
eval "$script"
|
||||
''
|
||||
))
|
||||
];
|
||||
});
|
||||
baseDerivation = {script, ...} @ args:
|
||||
builtins.derivation (args
|
||||
// {
|
||||
inherit system;
|
||||
builder = "${prebuilts}/busybox";
|
||||
PATH = "${prebuilts}";
|
||||
args = [
|
||||
"sh"
|
||||
(toFile "${args.name}-builder.sh" ''
|
||||
set -ex
|
||||
eval "$script"
|
||||
'')
|
||||
];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue