mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
6ed0fe7e45
Conflicts: pkgs/build-support/fetchbower/default.nix pkgs/build-support/fetchdarcs/default.nix pkgs/build-support/fetchgx/default.nix pkgs/development/python-modules/botocore/default.nix pkgs/os-specific/linux/firmware/firmware-linux-nonfree/default.nix pkgs/tools/admin/awscli/default.nix
29 lines
491 B
Nix
29 lines
491 B
Nix
{ 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;
|
|
|
|
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
|
|
|
buildPhase = ''
|
|
export GOPATH=$(pwd)/vendor
|
|
mkdir -p vendor
|
|
gx install
|
|
'';
|
|
|
|
installPhase = ''
|
|
mv vendor $out
|
|
'';
|
|
|
|
preferLocalBuild = true;
|
|
}
|