go: add procps for sysctl in tests, print ulimits for debugging resource exhaustion
This commit is contained in:
parent
ae2cf0bee8
commit
4a7a497fb6
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
||||||
, perl, which, pkgconfig, patch, fetchpatch
|
, perl, which, pkgconfig, patch, procps
|
||||||
, pcre, cacert, llvm
|
, pcre, cacert, llvm
|
||||||
, Security, Foundation, bash
|
, Security, Foundation, bash
|
||||||
, makeWrapper, git, subversion, mercurial, bazaar }:
|
, makeWrapper, git, subversion, mercurial, bazaar }:
|
||||||
@ -35,7 +35,8 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# perl is used for testing go vet
|
# 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 ]
|
buildInputs = [ pcre ]
|
||||||
++ optionals stdenv.isLinux [ stdenv.glibc.out stdenv.glibc.static ];
|
++ optionals stdenv.isLinux [ stdenv.glibc.out stdenv.glibc.static ];
|
||||||
propagatedBuildInputs = optionals stdenv.isDarwin [ Security Foundation ];
|
propagatedBuildInputs = optionals stdenv.isDarwin [ Security Foundation ];
|
||||||
@ -144,6 +145,7 @@ stdenv.mkDerivation rec {
|
|||||||
export GOROOT=$out/share/go
|
export GOROOT=$out/share/go
|
||||||
export GOBIN=$GOROOT/bin
|
export GOBIN=$GOROOT/bin
|
||||||
export PATH=$GOBIN:$PATH
|
export PATH=$GOBIN:$PATH
|
||||||
|
ulimit -a
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postConfigure = optionalString stdenv.isDarwin ''
|
postConfigure = optionalString stdenv.isDarwin ''
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
{ stdenv, fetchFromGitHub, tzdata, iana-etc, go_bootstrap, runCommand, writeScriptBin
|
||||||
, perl, which, pkgconfig, patch, fetchpatch
|
, perl, which, pkgconfig, patch, procps
|
||||||
, pcre, cacert, llvm
|
, pcre, cacert, llvm
|
||||||
, Security, Foundation, bash
|
, Security, Foundation, bash
|
||||||
, makeWrapper, git, subversion, mercurial, bazaar }:
|
, makeWrapper, git, subversion, mercurial, bazaar }:
|
||||||
@ -35,7 +35,8 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
# perl is used for testing go vet
|
# 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 ]
|
buildInputs = [ pcre ]
|
||||||
++ optionals stdenv.isLinux [ stdenv.glibc.out stdenv.glibc.static ];
|
++ optionals stdenv.isLinux [ stdenv.glibc.out stdenv.glibc.static ];
|
||||||
propagatedBuildInputs = optionals stdenv.isDarwin [ Security Foundation ];
|
propagatedBuildInputs = optionals stdenv.isDarwin [ Security Foundation ];
|
||||||
@ -150,6 +151,7 @@ stdenv.mkDerivation rec {
|
|||||||
export GOROOT=$out/share/go
|
export GOROOT=$out/share/go
|
||||||
export GOBIN=$GOROOT/bin
|
export GOBIN=$GOROOT/bin
|
||||||
export PATH=$GOBIN:$PATH
|
export PATH=$GOBIN:$PATH
|
||||||
|
ulimit -a
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postConfigure = optionalString stdenv.isDarwin ''
|
postConfigure = optionalString stdenv.isDarwin ''
|
||||||
|
Loading…
x
Reference in New Issue
Block a user