Merge pull request #65115 from risicle/ris-blockbook-darwin-ulimit

blockbook: increase ulimit -n on darwin for packr execution
This commit is contained in:
worldofpeace 2019-07-27 09:29:09 -04:00 committed by GitHub
commit f9b3cf8a4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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