Add gx-go to nativeBuildInputs for ipfs-cluster

This commit is contained in:
Joseph Lukasik
2018-09-01 16:01:43 -07:00
parent d8b4a46b0e
commit 314d1fcdcb
@@ -21,11 +21,13 @@ buildGoPackage rec {
sha256 = "132whjyplcifq8747hcdrgbc0amhp618dg049jq5nyslcxfgdypm"; sha256 = "132whjyplcifq8747hcdrgbc0amhp618dg049jq5nyslcxfgdypm";
}; };
nativeBuildInputs = [ gx-go ];
preBuild = '' preBuild = ''
# fetchgx stores packages by their ipfs hash # fetchgx stores packages by their ipfs hash
# this will rewrite github.com/ imports to gx/ipfs/ # this will rewrite github.com/ imports to gx/ipfs/
cd go/src/${goPackagePath} cd go/src/${goPackagePath}
${gx-go}/bin/gx-go rewrite gx-go rewrite
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {