flake.nix: provide other systems too
This commit is contained in:
parent
d550c4c234
commit
7dba97e4ea
17
flake.nix
17
flake.nix
|
@ -7,8 +7,15 @@
|
|||
|
||||
outputs = { self, naersk, nixpkgs, rust-overlay }:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
systems = [
|
||||
"aarch64-linux"
|
||||
"i686-linux"
|
||||
"x86_64-linux"
|
||||
];
|
||||
overlays = [ (import rust-overlay) ];
|
||||
in
|
||||
builtins.foldl' (outputs: system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit overlays system;
|
||||
};
|
||||
|
@ -36,7 +43,7 @@
|
|||
vulkan-headers
|
||||
];
|
||||
in
|
||||
{
|
||||
nixpkgs.lib.recursiveUpdate outputs {
|
||||
packages.${system}.bevy_mandelbrot = naersk-lib.buildPackage {
|
||||
pname = "bevy_mandelbrot";
|
||||
root = ./.;
|
||||
|
@ -48,12 +55,14 @@
|
|||
--prefix LD_LIBRARY_PATH : ${pkgs.lib.makeLibraryPath runtime-deps} \
|
||||
--set CARGO_MANIFEST_DIR $out/share/bevy_mandelbrot
|
||||
mkdir -p $out/share/bevy_mandelbrot
|
||||
cp -a assets $out/share/bevy_mandelbrot'';
|
||||
cp -a assets $out/share/bevy_mandelbrot
|
||||
'';
|
||||
};
|
||||
};
|
||||
defaultPackage.${system} = self.packages.${system}.bevy_mandelbrot;
|
||||
|
||||
hydraJobs = builtins.mapAttrs (_: drv: { "${system}" = nixpkgs.lib.hydraJob drv; })
|
||||
self.packages.${system};
|
||||
};
|
||||
}
|
||||
) {} systems;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user