diff options
author | Orivej Desh <orivej@gmx.fr> | 2017-12-02 12:19:14 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2017-12-02 12:19:14 +0000 |
commit | 4a7a497fb6a012be8e2782a523d96aed578d8c3c (patch) | |
tree | 8ef87149b5b5ff1b31ed9a653a113a0476c32cb0 /pkgs/development/compilers/go | |
parent | ae2cf0bee8da88e2f4ecf8e227a7ca56f32c0171 (diff) | |
download | nixlib-4a7a497fb6a012be8e2782a523d96aed578d8c3c.tar nixlib-4a7a497fb6a012be8e2782a523d96aed578d8c3c.tar.gz nixlib-4a7a497fb6a012be8e2782a523d96aed578d8c3c.tar.bz2 nixlib-4a7a497fb6a012be8e2782a523d96aed578d8c3c.tar.lz nixlib-4a7a497fb6a012be8e2782a523d96aed578d8c3c.tar.xz nixlib-4a7a497fb6a012be8e2782a523d96aed578d8c3c.tar.zst nixlib-4a7a497fb6a012be8e2782a523d96aed578d8c3c.zip |
go: add procps for sysctl in tests, print ulimits for debugging resource exhaustion
Diffstat (limited to 'pkgs/development/compilers/go')
-rw-r--r-- | pkgs/development/compilers/go/1.8.nix | 6 | ||||
-rw-r--r-- | pkgs/development/compilers/go/1.9.nix | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/compilers/go/1.8.nix b/pkgs/development/compilers/go/1.8.nix index 538c20bac72a..210f259df89a 100644 --- a/pkgs/development/compilers/go/1.8.nix +++ b/pkgs/development/compilers/go/1.8.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin -, perl, which, pkgconfig, patch, fetchpatch +, perl, which, pkgconfig, patch, procps , pcre, cacert, llvm , Security, Foundation, bash , makeWrapper, git, subversion, mercurial, bazaar }: @@ -35,7 +35,8 @@ stdenv.mkDerivation rec { }; # perl is used for testing go vet - nativeBuildInputs = [ perl which pkgconfig patch makeWrapper ]; + nativeBuildInputs = [ perl which pkgconfig patch makeWrapper ] + ++ optionals stdenv.isLinux [ procps ]; buildInputs = [ pcre ] ++ optionals stdenv.isLinux [ stdenv.glibc.out stdenv.glibc.static ]; propagatedBuildInputs = optionals stdenv.isDarwin [ Security Foundation ]; @@ -144,6 +145,7 @@ stdenv.mkDerivation rec { export GOROOT=$out/share/go export GOBIN=$GOROOT/bin export PATH=$GOBIN:$PATH + ulimit -a ''; postConfigure = optionalString stdenv.isDarwin '' diff --git a/pkgs/development/compilers/go/1.9.nix b/pkgs/development/compilers/go/1.9.nix index 007b81d995b7..8708bd762c4d 100644 --- a/pkgs/development/compilers/go/1.9.nix +++ b/pkgs/development/compilers/go/1.9.nix @@ -1,5 +1,5 @@ { stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin -, perl, which, pkgconfig, patch, fetchpatch +, perl, which, pkgconfig, patch, procps , pcre, cacert, llvm , Security, Foundation, bash , makeWrapper, git, subversion, mercurial, bazaar }: @@ -35,7 +35,8 @@ stdenv.mkDerivation rec { }; # perl is used for testing go vet - nativeBuildInputs = [ perl which pkgconfig patch makeWrapper ]; + nativeBuildInputs = [ perl which pkgconfig patch makeWrapper ] + ++ optionals stdenv.isLinux [ procps ]; buildInputs = [ pcre ] ++ optionals stdenv.isLinux [ stdenv.glibc.out stdenv.glibc.static ]; propagatedBuildInputs = optionals stdenv.isDarwin [ Security Foundation ]; @@ -150,6 +151,7 @@ stdenv.mkDerivation rec { export GOROOT=$out/share/go export GOBIN=$GOROOT/bin export PATH=$GOBIN:$PATH + ulimit -a ''; postConfigure = optionalString stdenv.isDarwin '' |