mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 12:53:05 +00:00
Merge pull request #203353 from SuperSandro2000/wiretiger
This commit is contained in:
commit
010798ff0f
@ -5,7 +5,6 @@
|
|||||||
, gperftools ? null, leveldb ? null
|
, gperftools ? null, leveldb ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
|
||||||
let
|
let
|
||||||
shouldUsePkg = pkg: if pkg != null && lib.meta.availableOn stdenv.hostPlatform pkg then pkg else null;
|
shouldUsePkg = pkg: if pkg != null && lib.meta.availableOn stdenv.hostPlatform pkg then pkg else null;
|
||||||
|
|
||||||
@ -32,26 +31,26 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [ optLz4 optSnappy optZlib optBzip2 optDb optGperftools optLeveldb ];
|
buildInputs = [ optLz4 optSnappy optZlib optBzip2 optDb optGperftools optLeveldb ];
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
(withFeature false "attach")
|
(lib.withFeature false "attach")
|
||||||
(withFeatureAs true "builtins" "")
|
(lib.withFeatureAs true "builtins" "")
|
||||||
(enableFeature (optBzip2 != null) "bzip2")
|
(lib.enableFeature (optBzip2 != null) "bzip2")
|
||||||
(enableFeature false "diagnostic")
|
(lib.enableFeature false "diagnostic")
|
||||||
(enableFeature false "java")
|
(lib.enableFeature false "java")
|
||||||
(enableFeature (optLeveldb != null) "leveldb")
|
(lib.enableFeature (optLeveldb != null) "leveldb")
|
||||||
(enableFeature false "python")
|
(lib.enableFeature false "python")
|
||||||
(enableFeature (optSnappy != null) "snappy")
|
(lib.enableFeature (optSnappy != null) "snappy")
|
||||||
(enableFeature (optLz4 != null) "lz4")
|
(lib.enableFeature (optLz4 != null) "lz4")
|
||||||
(enableFeature (optGperftools != null) "tcmalloc")
|
(lib.enableFeature (optGperftools != null) "tcmalloc")
|
||||||
(enableFeature (optZlib != null) "zlib")
|
(lib.enableFeature (optZlib != null) "zlib")
|
||||||
(withFeatureAs (optDb != null) "berkeleydb" optDb)
|
(lib.withFeatureAs (optDb != null) "berkeleydb" optDb)
|
||||||
(withFeature false "helium")
|
(lib.withFeature false "helium")
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with lib; {
|
||||||
homepage = "http://wiredtiger.com/";
|
homepage = "http://wiredtiger.com/";
|
||||||
description = "";
|
description = "";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
|
Loading…
Reference in New Issue
Block a user