diff options
-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 ''; |