don’t use content-addressed derivations (for now)

This commit is contained in:
Charlotte 🦝 Delenk 2023-02-05 10:29:13 +01:00
parent 52a9aedf51
commit bf388af66e
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -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";
baseDerivation = {script, ...} @ args:
builtins.derivation (args
// {
inherit system;
builder = "${prebuilts}/busybox";
PATH = "${prebuilts}";
args = [
"sh"
(toFile "${args.name}-builder.sh" (
''
(toFile "${args.name}-builder.sh" ''
set -ex
export PATH=${prebuilts}
eval "$script"
''
))
'')
];
});
}