about summary refs log tree commit diff
path: root/pkgs/profpatsch/nman
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2019-04-20 19:34:16 +0200
committerProfpatsch <mail@profpatsch.de>2019-04-20 19:36:06 +0200
commit9951de47ded28a84a9e975d870f3c7c4749fb83e (patch)
treeaed66604dac9ab66905ea7404f542bd3159046f9 /pkgs/profpatsch/nman
parent6480ee5b9e05a763eef929250bf14acaa8631202 (diff)
pkgs/profpatsch/nman: fix go build
Diffstat (limited to 'pkgs/profpatsch/nman')
-rw-r--r--pkgs/profpatsch/nman/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/profpatsch/nman/default.nix b/pkgs/profpatsch/nman/default.nix
index b9b967cf..bbf4f00f 100644
--- a/pkgs/profpatsch/nman/default.nix
+++ b/pkgs/profpatsch/nman/default.nix
@@ -6,7 +6,9 @@ runCommandNoCC "nman" {
     license = licenses.gpl3;
   };
 } ''
-    ${lib.getBin go}/bin/go build -o nman ${./nman.go}
+    mkdir cache
+    env GOCACHE="$PWD/cache" \
+      ${lib.getBin go}/bin/go build -o nman ${./nman.go}
     install -D nman $out/bin/nman
 ''