2024-06-30 08:12:46 +00:00
|
|
|
{
|
|
|
|
stdenvNoCC,
|
|
|
|
gx,
|
|
|
|
gx-go,
|
|
|
|
go,
|
|
|
|
cacert,
|
|
|
|
}:
|
|
|
|
|
|
|
|
{
|
|
|
|
name,
|
|
|
|
src,
|
|
|
|
sha256,
|
|
|
|
}:
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
|
|
name = "${name}-gxdeps";
|
|
|
|
inherit src;
|
|
|
|
|
2024-06-30 08:12:46 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cacert
|
|
|
|
go
|
|
|
|
gx
|
|
|
|
gx-go
|
|
|
|
];
|
2024-05-02 00:46:19 +00:00
|
|
|
|
|
|
|
outputHashAlgo = "sha256";
|
|
|
|
outputHashMode = "recursive";
|
|
|
|
outputHash = sha256;
|
|
|
|
|
|
|
|
dontConfigure = true;
|
|
|
|
doCheck = false;
|
|
|
|
doInstallCheck = false;
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
export GOPATH=$(pwd)/vendor
|
|
|
|
mkdir -p vendor
|
|
|
|
gx install
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mv vendor $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
preferLocalBuild = true;
|
|
|
|
}
|