diff options
author | Tuomas Tynkkynen <tuomas@tuxera.com> | 2016-10-31 20:13:06 +0200 |
---|---|---|
committer | Tuomas Tynkkynen <tuomas@tuxera.com> | 2016-10-31 20:13:06 +0200 |
commit | d0ae7b973d8a4f064324a058a83385a68b177e72 (patch) | |
tree | e4a2376def05dd34e4c4f9d499de685489d9ccb7 /pkgs/build-support | |
parent | 225602d9f2fc5d437e4996c9697dd272d18846c0 (diff) | |
parent | e675b2c0deb24aabbefbfe342945c20cab616bfb (diff) |
Merge remote-tracking branch 'upstream/master' into staging
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/fetchgx/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/build-support/fetchgx/default.nix b/pkgs/build-support/fetchgx/default.nix new file mode 100644 index 0000000000000..c72bbec663210 --- /dev/null +++ b/pkgs/build-support/fetchgx/default.nix @@ -0,0 +1,30 @@ +{ stdenv, gx, gx-go, go, cacert }: + +{ name, src, sha256 }: + +stdenv.mkDerivation { + name = "${name}-gxdeps"; + inherit src; + + buildInputs = [ go gx gx-go ]; + + outputHashAlgo = "sha256"; + outputHashMode = "recursive"; + outputHash = sha256; + + phases = [ "unpackPhase" "buildPhase" "installPhase" ]; + + SSL_CERT_FILE = "${cacert}/etc/ssl/certs/ca-bundle.crt"; + + buildPhase = '' + export GOPATH=$(pwd)/vendor + mkdir vendor + gx install + ''; + + installPhase = '' + mv vendor $out + ''; + + preferLocalBuild = true; +} |