all repos — homestead @ e02ccb1dfc872772f76faf7614aeb66d84c62d4c

Code for my website

try to improve building on aarch64-darwin

Alan Pearce
commit

e02ccb1dfc872772f76faf7614aeb66d84c62d4c

parent

9e8234eb98a9a2b12a85a1741dc587cf0c54ecd9

2 files changed, 3 insertions(+), 1 deletion(-)

jump to
M flake.nixflake.nix
@@ -29,6 +29,7 @@ {
inherit packages; devShells = { default = pkgs.mkShell { + inputsFrom = [ packages.builder ]; packages = with pkgs; [ gopls gotools
M nix/default.nixnix/default.nix
@@ -28,6 +28,7 @@ default = server;
builder = pkgs.buildGoApplication { pname = "website-builder"; inherit version; + CGO_ENABLED = 0; src = with pkgs.lib.fileset; toSource { root = ./..; fileset = unions [
@@ -57,7 +58,7 @@ ./../static
./../templates ]; }; - buildInputs = [ builder ]; + nativeBuildInputs = [ builder ]; prePatch = '' ${builder}/bin/build '';