static executable in nix
This commit is contained in:
parent
195eccdc44
commit
dda1916f8c
5
site.nix
5
site.nix
|
@ -12,7 +12,10 @@ buildGoPackage rec {
|
||||||
|
|
||||||
goDeps = ./deps.nix;
|
goDeps = ./deps.nix;
|
||||||
allowGoReference = false;
|
allowGoReference = false;
|
||||||
CGO_ENABLED = "0";
|
preBuild = ''
|
||||||
|
export CGO_ENABLED=0
|
||||||
|
buildFlagsArray+=(-pkgdir "$TMPDIR")
|
||||||
|
'';
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
cp -rf $src/blog $bin/blog
|
cp -rf $src/blog $bin/blog
|
||||||
|
|
Loading…
Reference in New Issue