3
0
Fork 0
forked from mirrors/nixpkgs

blockbook: increase ulimit -n on darwin for packr execution

macos default can cause build failures due to too many open files
This commit is contained in:
Robert Scott 2019-07-20 01:21:16 +01:00
parent 1b6d404bfe
commit f60b221629

View file

@ -1,4 +1,5 @@
{ buildGoPackage { stdenv
, buildGoPackage
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, rocksdb , rocksdb
@ -30,7 +31,9 @@ buildGoPackage rec {
nativeBuildInputs = [ pkg-config packr ]; nativeBuildInputs = [ pkg-config packr ];
preBuild = '' preBuild = lib.optionalString stdenv.isDarwin ''
ulimit -n 8192
'' + ''
export CGO_CFLAGS="-I${rocksdb}/include" export CGO_CFLAGS="-I${rocksdb}/include"
export CGO_LDFLAGS="-L${rocksdb}/lib -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4" export CGO_LDFLAGS="-L${rocksdb}/lib -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4"
packr clean && packr packr clean && packr