about summary refs log tree commit diff
diff options
context:
space:
mode:
-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 d073593d4880..33b9f6151399 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; {