about summary refs log tree commit diff stats
path: root/nix
diff options
context:
space:
mode:
authorAlan Pearce2024-04-19 22:10:10 +0200
committerAlan Pearce2024-04-19 22:13:42 +0200
commitbf469bae36ebad75bfd167074f104b6b2d66a3b0 (patch)
treede7a11a928d232e8c046cb110af1ffa9f34c1f22 /nix
parent6fa56947adc7017bf5034010b516dd26b90c82b8 (diff)
downloadwebsite-bf469bae36ebad75bfd167074f104b6b2d66a3b0.tar.lz
website-bf469bae36ebad75bfd167074f104b6b2d66a3b0.tar.zst
website-bf469bae36ebad75bfd167074f104b6b2d66a3b0.zip
try to improve building on aarch64-darwin
Diffstat (limited to 'nix')
-rw-r--r--nix/default.nix3
1 files changed, 2 insertions, 1 deletions
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
     '';