Use a different derivation for the prebuilds path
All checks were successful
Hydra bin0-bin.powerpc-linux Hydra build #1146 of bootstrap:bootstrap:bin0-bin.powerpc-linux
Hydra bin0-bin.aarch64-linux Hydra build #1145 of bootstrap:bootstrap:bin0-bin.aarch64-linux
Hydra bin0.powerpc-linux Hydra build #1144 of bootstrap:bootstrap:bin0.powerpc-linux
Hydra bin0.armv7l-linux Hydra build #1147 of bootstrap:bootstrap:bin0.armv7l-linux
Hydra bin0.aarch64-linux Hydra build #1143 of bootstrap:bootstrap:bin0.aarch64-linux
Hydra bin0-bin.armv7l-linux Hydra build #1148 of bootstrap:bootstrap:bin0-bin.armv7l-linux
All checks were successful
Hydra bin0-bin.powerpc-linux Hydra build #1146 of bootstrap:bootstrap:bin0-bin.powerpc-linux
Hydra bin0-bin.aarch64-linux Hydra build #1145 of bootstrap:bootstrap:bin0-bin.aarch64-linux
Hydra bin0.powerpc-linux Hydra build #1144 of bootstrap:bootstrap:bin0.powerpc-linux
Hydra bin0.armv7l-linux Hydra build #1147 of bootstrap:bootstrap:bin0.armv7l-linux
Hydra bin0.aarch64-linux Hydra build #1143 of bootstrap:bootstrap:bin0.aarch64-linux
Hydra bin0-bin.armv7l-linux Hydra build #1148 of bootstrap:bootstrap:bin0-bin.armv7l-linux
This commit is contained in:
parent
d5a4280390
commit
9b690ead91
1 changed files with 9 additions and 2 deletions
|
@ -1,15 +1,22 @@
|
|||
system: { nixpkgs, ... } @ args: rec {
|
||||
inherit (builtins) toFile;
|
||||
|
||||
allPrebuilds = builtins.path {
|
||||
path = ../prebuilt;
|
||||
sha256 = "sha256-KCcpkzakViGAgcR8CECNuXghl1B3HREoTPfDLg2o9Ys=";
|
||||
};
|
||||
|
||||
prebuilts = "${allPrebuilds}/${system}";
|
||||
|
||||
baseDerivation = { script, ... } @args: builtins.derivation (args // {
|
||||
inherit system;
|
||||
builder = ./. + "/../prebuilt/${system}/busybox";
|
||||
builder = "${prebuilts}/busybox";
|
||||
args = [
|
||||
"sh"
|
||||
(toFile "${args.name}-builder.sh" (
|
||||
''
|
||||
set -ex
|
||||
export PATH=${./. + "/../prebuilt/${system}"}
|
||||
export PATH=${prebuilts}
|
||||
eval "$script"
|
||||
''
|
||||
))
|
||||
|
|
Loading…
Reference in a new issue