Improve flake
This commit is contained in:
parent
9108a9f707
commit
18597a772e
1 changed files with 9 additions and 5 deletions
12
flake.nix
12
flake.nix
|
@ -7,12 +7,12 @@
|
||||||
|
|
||||||
outputs = { self, nixpkgs }:
|
outputs = { self, nixpkgs }:
|
||||||
let
|
let
|
||||||
forAllSystems = fn:
|
systems = [
|
||||||
nixpkgs.lib.genAttrs [
|
|
||||||
"x86_64-linux"
|
"x86_64-linux"
|
||||||
"x86_64-darwin"
|
|
||||||
"aarch64-linux"
|
"aarch64-linux"
|
||||||
] (system:
|
];
|
||||||
|
forAllSystems = fn:
|
||||||
|
nixpkgs.lib.genAttrs systems (system:
|
||||||
fn (import nixpkgs {
|
fn (import nixpkgs {
|
||||||
inherit system;
|
inherit system;
|
||||||
})
|
})
|
||||||
|
@ -23,6 +23,10 @@
|
||||||
default = pkgs.stdenv.mkDerivation {
|
default = pkgs.stdenv.mkDerivation {
|
||||||
name = "callisto";
|
name = "callisto";
|
||||||
src = ./.;
|
src = ./.;
|
||||||
|
nativeBuildInputs = with pkgs; [
|
||||||
|
gcc
|
||||||
|
binutils
|
||||||
|
];
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
make
|
make
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue