bootstrap/bin0/default.nix
Charlotte 🦝 Delenk d5a4280390
Some checks failed
Hydra bin0-bin.powerpc-linux Hydra build #1137 of bootstrap:bootstrap:bin0-bin.powerpc-linux
Hydra bin0.powerpc-linux Hydra build #1138 of bootstrap:bootstrap:bin0.powerpc-linux
feat: add powerpc bin0
2022-02-27 21:26:51 +01:00

21 lines
503 B
Nix

system: { self, nixpkgs, ... } @ args: with self.lib.${system}; with nixpkgs.lib; if lists.any (s: system == s) [
"armv7l-linux"
"aarch64-linux"
"powerpc-linux"
] then
rec {
bin0-bin = baseDerivation {
name = "bin0-bin";
script = ''
set -ex
cp ${./. + "/${system}/bin0"} $out
'';
};
bin0 = baseDerivation {
name = "bin0";
script = ''
set -ex
${bin0-bin} ${./. + "/${system}/bin0.bin0"} $out
'';
};
} else { }