2022-02-27 18:13:10 +00:00
|
|
|
system: { self, nixpkgs, ... } @ args: with self.lib.${system}; with nixpkgs.lib; if lists.any (s: system == s) [
|
|
|
|
"armv7l-linux"
|
|
|
|
"aarch64-linux"
|
2022-02-27 20:26:51 +00:00
|
|
|
"powerpc-linux"
|
2022-02-27 18:13:10 +00:00
|
|
|
] then
|
2022-02-27 09:36:59 +00:00
|
|
|
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 { }
|