mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
32 lines
592 B
Nix
32 lines
592 B
Nix
{ lib, stdenvNoCC, gx, gx-go, go, cacert }:
|
|
|
|
lib.fetchers.withNormalizedHash { } (
|
|
{ name, src, outputHash, outputHashAlgo }:
|
|
|
|
stdenvNoCC.mkDerivation {
|
|
name = "${name}-gxdeps";
|
|
inherit src;
|
|
|
|
nativeBuildInputs = [ cacert go gx gx-go ];
|
|
|
|
inherit outputHash outputHashAlgo;
|
|
outputHashMode = "recursive";
|
|
|
|
dontConfigure = true;
|
|
doCheck = false;
|
|
doInstallCheck = false;
|
|
|
|
buildPhase = ''
|
|
export GOPATH=$(pwd)/vendor
|
|
mkdir -p vendor
|
|
gx install
|
|
'';
|
|
|
|
installPhase = ''
|
|
mv vendor $out
|
|
'';
|
|
|
|
preferLocalBuild = true;
|
|
}
|
|
)
|