static executable

This commit is contained in:
Cadey Ratio 2020-02-10 12:04:05 +00:00
parent f281d90c7b
commit bc366ff01f
1 changed files with 4 additions and 1 deletions

View File

@ -7,7 +7,10 @@ buildGoPackage rec {
goPackagePath = "tulpa.dev/Xe/quickserv";
src = ./.;
goDeps = ./deps.nix;
preBuild = ''
export CGO_ENABLED=0
buildFlagsArray+=(-pkgdir "$TMPDIR")
'';
allowGoReference = false;
CGO_ENABLED = "0";
}