forked from M-Labs/wfvm
Compare commits
2 Commits
11a40de18a
...
a84d2d8d90
Author | SHA1 | Date | |
---|---|---|---|
a84d2d8d90 | |||
520898c1db |
@ -1,7 +1,10 @@
|
||||
{ pkgs }:
|
||||
|
||||
pkgs.runCommandNoCC "win-bundle-installer.exe" {} ''
|
||||
mkdir bundle
|
||||
cd bundle
|
||||
cp ${./go.mod} go.mod
|
||||
cp ${./main.go} main.go
|
||||
env HOME=$(mktemp -d) GOOS=windows GOARCH=amd64 ${pkgs.go}/bin/go build
|
||||
mv build.exe $out
|
||||
mv bundle.exe $out
|
||||
''
|
||||
|
3
wfvm/bundle/go.mod
Normal file
3
wfvm/bundle/go.mod
Normal file
@ -0,0 +1,3 @@
|
||||
module bundle
|
||||
|
||||
go 1.11
|
@ -2,7 +2,7 @@
|
||||
|
||||
rec {
|
||||
# qemu_test is a smaller closure only building for a single system arch
|
||||
qemu = pkgs.qemu_test;
|
||||
qemu = pkgs.qemu;
|
||||
|
||||
mkQemuFlags = extraFlags: [
|
||||
"-enable-kvm"
|
||||
|
Loading…
Reference in New Issue
Block a user