forked from M-Labs/wfvm
bundle: fix for newer go version
This commit is contained in:
parent
11a40de18a
commit
520898c1db
|
@ -1,7 +1,10 @@
|
||||||
{ pkgs }:
|
{ pkgs }:
|
||||||
|
|
||||||
pkgs.runCommandNoCC "win-bundle-installer.exe" {} ''
|
pkgs.runCommandNoCC "win-bundle-installer.exe" {} ''
|
||||||
|
mkdir bundle
|
||||||
|
cd bundle
|
||||||
|
cp ${./go.mod} go.mod
|
||||||
cp ${./main.go} main.go
|
cp ${./main.go} main.go
|
||||||
env HOME=$(mktemp -d) GOOS=windows GOARCH=amd64 ${pkgs.go}/bin/go build
|
env HOME=$(mktemp -d) GOOS=windows GOARCH=amd64 ${pkgs.go}/bin/go build
|
||||||
mv build.exe $out
|
mv bundle.exe $out
|
||||||
''
|
''
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
module bundle
|
||||||
|
|
||||||
|
go 1.11
|
Loading…
Reference in New Issue