diff options
author | Alan Pearce | 2024-04-19 22:10:10 +0200 |
---|---|---|
committer | Alan Pearce | 2024-04-19 22:13:42 +0200 |
commit | bf469bae36ebad75bfd167074f104b6b2d66a3b0 (patch) | |
tree | de7a11a928d232e8c046cb110af1ffa9f34c1f22 | |
parent | 6fa56947adc7017bf5034010b516dd26b90c82b8 (diff) | |
download | website-bf469bae36ebad75bfd167074f104b6b2d66a3b0.tar.lz website-bf469bae36ebad75bfd167074f104b6b2d66a3b0.tar.zst website-bf469bae36ebad75bfd167074f104b6b2d66a3b0.zip |
try to improve building on aarch64-darwin
-rw-r--r-- | flake.nix | 1 | ||||
-rw-r--r-- | nix/default.nix | 3 |
2 files changed, 3 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix index 78a2c53..c97f348 100644 --- a/flake.nix +++ b/flake.nix @@ -29,6 +29,7 @@ inherit packages; devShells = { default = pkgs.mkShell { + inputsFrom = [ packages.builder ]; packages = with pkgs; [ gopls gotools diff --git a/nix/default.nix b/nix/default.nix index a04131b..e6102cf 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -28,6 +28,7 @@ rec { builder = pkgs.buildGoApplication { pname = "website-builder"; inherit version; + CGO_ENABLED = 0; src = with pkgs.lib.fileset; toSource { root = ./..; fileset = unions [ @@ -57,7 +58,7 @@ rec { ./../templates ]; }; - buildInputs = [ builder ]; + nativeBuildInputs = [ builder ]; prePatch = '' ${builder}/bin/build ''; |