2020-04-24 23:36:52 +00:00
|
|
|
{ stdenvNoCC, gx, gx-go, go, cacert }:
|
|
|
|
|
|
|
|
{ name, src, sha256 }:
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
name = "${name}-gxdeps";
|
|
|
|
inherit src;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cacert go gx gx-go ];
|
|
|
|
|
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHash = sha256;
|
|
|
|
|
2021-08-22 07:53:02 +00:00
|
|
|
dontConfigure = true;
|
|
|
|
doCheck = false;
|
|
|
|
doInstallCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
export GOPATH=$(pwd)/vendor
|
|
|
|
mkdir -p vendor
|
|
|
|
gx install
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mv vendor $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
}
|