tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
wiredtiger: remove global with lib
Sandro Jäckel
3 years ago
240694a5
ceee0267
+14
-15
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
wiredtiger
default.nix
+14
-15
pkgs/development/libraries/wiredtiger/default.nix
···
5
, gperftools ? null, leveldb ? null
6
}:
7
8
-
with lib;
9
let
10
shouldUsePkg = pkg: if pkg != null && lib.meta.availableOn stdenv.hostPlatform pkg then pkg else null;
11
···
32
buildInputs = [ optLz4 optSnappy optZlib optBzip2 optDb optGperftools optLeveldb ];
33
34
configureFlags = [
35
-
(withFeature false "attach")
36
-
(withFeatureAs true "builtins" "")
37
-
(enableFeature (optBzip2 != null) "bzip2")
38
-
(enableFeature false "diagnostic")
39
-
(enableFeature false "java")
40
-
(enableFeature (optLeveldb != null) "leveldb")
41
-
(enableFeature false "python")
42
-
(enableFeature (optSnappy != null) "snappy")
43
-
(enableFeature (optLz4 != null) "lz4")
44
-
(enableFeature (optGperftools != null) "tcmalloc")
45
-
(enableFeature (optZlib != null) "zlib")
46
-
(withFeatureAs (optDb != null) "berkeleydb" optDb)
47
-
(withFeature false "helium")
48
];
49
50
preConfigure = ''
51
./autogen.sh
52
'';
53
54
-
meta = {
55
homepage = "http://wiredtiger.com/";
56
description = "";
57
license = licenses.gpl2;
···
5
, gperftools ? null, leveldb ? null
6
}:
7
0
8
let
9
shouldUsePkg = pkg: if pkg != null && lib.meta.availableOn stdenv.hostPlatform pkg then pkg else null;
10
···
31
buildInputs = [ optLz4 optSnappy optZlib optBzip2 optDb optGperftools optLeveldb ];
32
33
configureFlags = [
34
+
(lib.withFeature false "attach")
35
+
(lib.withFeatureAs true "builtins" "")
36
+
(lib.enableFeature (optBzip2 != null) "bzip2")
37
+
(lib.enableFeature false "diagnostic")
38
+
(lib.enableFeature false "java")
39
+
(lib.enableFeature (optLeveldb != null) "leveldb")
40
+
(lib.enableFeature false "python")
41
+
(lib.enableFeature (optSnappy != null) "snappy")
42
+
(lib.enableFeature (optLz4 != null) "lz4")
43
+
(lib.enableFeature (optGperftools != null) "tcmalloc")
44
+
(lib.enableFeature (optZlib != null) "zlib")
45
+
(lib.withFeatureAs (optDb != null) "berkeleydb" optDb)
46
+
(lib.withFeature false "helium")
47
];
48
49
preConfigure = ''
50
./autogen.sh
51
'';
52
53
+
meta = with lib; {
54
homepage = "http://wiredtiger.com/";
55
description = "";
56
license = licenses.gpl2;