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

This commit is contained in:
Charlotte 🦝 Delenk 2022-02-27 21:43:48 +01:00
parent d5a4280390
commit 9b690ead91
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122

View file

@ -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"
''
))