From bf469bae36ebad75bfd167074f104b6b2d66a3b0 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 19 Apr 2024 22:10:10 +0200 Subject: try to improve building on aarch64-darwin --- flake.nix | 1 + nix/default.nix | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) 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 ''; -- cgit 1.4.1