Add gx-go to nativeBuildInputs for ipfs-cluster
This commit is contained in:
@@ -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; {
|
||||||
|
|||||||
Reference in New Issue
Block a user