From 18597a772e388f99e5fb18da0ca06cd4302d6e3f Mon Sep 17 00:00:00 2001 From: Jeremy Baxter Date: Thu, 3 Aug 2023 17:02:17 +1200 Subject: [PATCH] Improve flake --- flake.nix | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index fbc8c6b..d35f2a0 100644 --- a/flake.nix +++ b/flake.nix @@ -7,12 +7,12 @@ outputs = { self, nixpkgs }: let + systems = [ + "x86_64-linux" + "aarch64-linux" + ]; forAllSystems = fn: - nixpkgs.lib.genAttrs [ - "x86_64-linux" - "x86_64-darwin" - "aarch64-linux" - ] (system: + nixpkgs.lib.genAttrs systems (system: fn (import nixpkgs { inherit system; }) @@ -23,6 +23,10 @@ default = pkgs.stdenv.mkDerivation { name = "callisto"; src = ./.; + nativeBuildInputs = with pkgs; [ + gcc + binutils + ]; buildPhase = '' make '';