bootstrap/bin0/default.nix
Charlotte 🦝 Delenk 5875797b18
All checks were successful
Hydra bin0-bin.aarch64-linux Hydra build #1127 of bootstrap:bootstrap:bin0-bin.aarch64-linux
Hydra bin0.aarch64-linux Hydra build #1128 of bootstrap:bootstrap:bin0.aarch64-linux
feat: add aarch64 bin0
2022-02-27 19:13:10 +01:00

20 lines
485 B
Nix

system: { self, nixpkgs, ... } @ args: with self.lib.${system}; with nixpkgs.lib; if lists.any (s: system == s) [
"armv7l-linux"
"aarch64-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 { }