diff options
author | Jude Taylor <me@jude.bio> | 2015-07-23 15:47:16 -0700 |
---|---|---|
committer | Jude Taylor <me@jude.bio> | 2015-07-23 15:47:16 -0700 |
commit | 4fab7321bf17b23572c57f05aedbf2271e304074 (patch) | |
tree | eae78f47f31a193cf28689a8a6182caef7528866 /pkgs/development/libraries/kyotocabinet | |
parent | 748da7e541dddae21a2658cdad1c3ace4e3937b7 (diff) |
make changes needed to build mongodb
Diffstat (limited to 'pkgs/development/libraries/kyotocabinet')
-rw-r--r-- | pkgs/development/libraries/kyotocabinet/default.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkgs/development/libraries/kyotocabinet/default.nix b/pkgs/development/libraries/kyotocabinet/default.nix index 6c4575b4e9d43..6617816b642bd 100644 --- a/pkgs/development/libraries/kyotocabinet/default.nix +++ b/pkgs/development/libraries/kyotocabinet/default.nix @@ -8,6 +8,18 @@ stdenv.mkDerivation rec { sha256 = "0g6js20x7vnpq4p8ghbw3mh9wpqksya9vwhzdx6dnlf354zjsal1"; }; + prePatch = stdenv.lib.optionalString stdenv.isDarwin '' + substituteInPlace kccommon.h \ + --replace tr1/unordered_map unordered_map \ + --replace tr1/unordered_set unordered_set \ + --replace tr1::hash std::hash \ + --replace tr1::unordered_map std::unordered_map \ + --replace tr1::unordered_set std::unordered_set + + substituteInPlace lab/kcdict/Makefile --replace stdc++ c++ + substituteInPlace configure --replace stdc++ c++ + ''; + buildInputs = [ zlib ]; meta = with stdenv.lib; { |