about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Lukasik <joseph@jgl.me>2018-09-01 16:01:43 -0700
committerJoseph Lukasik <joseph@jgl.me>2018-09-01 16:01:43 -0700
commit314d1fcdcb5b8602d634beaf577757ee5e8b6aee (patch)
tree624a33cfa3ec83700150726a608a98d5d58646fd
parentd8b4a46b0eaf33df89dfc9370d965448cd124a72 (diff)
Add gx-go to nativeBuildInputs for ipfs-cluster
-rw-r--r--pkgs/applications/networking/ipfs-cluster/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/networking/ipfs-cluster/default.nix b/pkgs/applications/networking/ipfs-cluster/default.nix
index d073593d4880c..33b9f61513998 100644
--- a/pkgs/applications/networking/ipfs-cluster/default.nix
+++ b/pkgs/applications/networking/ipfs-cluster/default.nix
@@ -21,11 +21,13 @@ buildGoPackage rec {
     sha256 = "132whjyplcifq8747hcdrgbc0amhp618dg049jq5nyslcxfgdypm";
   };
 
+  nativeBuildInputs = [ gx-go ];
+
   preBuild = ''
     # fetchgx stores packages by their ipfs hash
     # this will rewrite github.com/ imports to gx/ipfs/
     cd go/src/${goPackagePath}
-    ${gx-go}/bin/gx-go rewrite
+    gx-go rewrite
   '';
 
   meta = with stdenv.lib; {