diff options
author | Jude Taylor <me@jude.bio> | 2015-10-19 18:40:55 -0700 |
---|---|---|
committer | Jude Taylor <me@jude.bio> | 2015-10-19 18:40:55 -0700 |
commit | 68087185e36ea4d3b1bf2cb7ccdaebb7d72d31d1 (patch) | |
tree | 73b0b9f0a8446a752386574ffd615ea2a5356ff4 /pkgs/servers/nosql/rethinkdb | |
parent | 97ebba6f1a7151a7a5b7b020e2d5f83f6fce0d93 (diff) | |
download | nixpkgs-68087185e36ea4d3b1bf2cb7ccdaebb7d72d31d1.tar nixpkgs-68087185e36ea4d3b1bf2cb7ccdaebb7d72d31d1.tar.gz nixpkgs-68087185e36ea4d3b1bf2cb7ccdaebb7d72d31d1.tar.bz2 nixpkgs-68087185e36ea4d3b1bf2cb7ccdaebb7d72d31d1.tar.lz nixpkgs-68087185e36ea4d3b1bf2cb7ccdaebb7d72d31d1.tar.xz nixpkgs-68087185e36ea4d3b1bf2cb7ccdaebb7d72d31d1.tar.zst nixpkgs-68087185e36ea4d3b1bf2cb7ccdaebb7d72d31d1.zip |
rethinkdb: build on darwin
Diffstat (limited to 'pkgs/servers/nosql/rethinkdb')
-rw-r--r-- | pkgs/servers/nosql/rethinkdb/default.nix | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/pkgs/servers/nosql/rethinkdb/default.nix b/pkgs/servers/nosql/rethinkdb/default.nix index 55f77ce0b5d..57b0e0abb76 100644 --- a/pkgs/servers/nosql/rethinkdb/default.nix +++ b/pkgs/servers/nosql/rethinkdb/default.nix @@ -1,5 +1,5 @@ { stdenv, fetchurl, which, m4, python -, protobuf, boost, zlib, curl, openssl, icu, jemalloc +, protobuf, boost, zlib, curl, openssl, icu, jemalloc, libtool }: stdenv.mkDerivation rec { @@ -11,17 +11,26 @@ stdenv.mkDerivation rec { sha256 = "03w9fq3wcvwy04b3x6zb3hvwar7b9jfbpq77rmxdlgh5w64vvgwd"; }; + postPatch = stdenv.lib.optionalString stdenv.isDarwin '' + sed -i 's/raise.*No Xcode or CLT version detected.*/version = "7.0.0"/' external/v8_3.30.33.16/build/gyp/pylib/gyp/xcode_emulation.py + + # very meta + substituteInPlace mk/support/pkg/re2.sh --replace "-i '''" "-i" + ''; + preConfigure = '' export ALLOW_WARNINGS=1 patchShebangs . ''; - configureFlags = [ + configureFlags = stdenv.lib.optionals (!stdenv.isDarwin) [ "--with-jemalloc" "--lib-path=${jemalloc}/lib" ]; - buildInputs = [ protobuf boost zlib curl openssl icu jemalloc ]; + buildInputs = [ protobuf boost zlib curl openssl icu ] + ++ stdenv.lib.optional (!stdenv.isDarwin) jemalloc + ++ stdenv.lib.optional stdenv.isDarwin libtool; nativeBuildInputs = [ which m4 python ]; |