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
5
, gperftools ? null, leveldb ? null
6
6
}:
7
7
8
8
-
with lib;
9
8
let
10
9
shouldUsePkg = pkg: if pkg != null && lib.meta.availableOn stdenv.hostPlatform pkg then pkg else null;
11
10
···
32
31
buildInputs = [ optLz4 optSnappy optZlib optBzip2 optDb optGperftools optLeveldb ];
33
32
34
33
configureFlags = [
35
35
-
(withFeature false "attach")
36
36
-
(withFeatureAs true "builtins" "")
37
37
-
(enableFeature (optBzip2 != null) "bzip2")
38
38
-
(enableFeature false "diagnostic")
39
39
-
(enableFeature false "java")
40
40
-
(enableFeature (optLeveldb != null) "leveldb")
41
41
-
(enableFeature false "python")
42
42
-
(enableFeature (optSnappy != null) "snappy")
43
43
-
(enableFeature (optLz4 != null) "lz4")
44
44
-
(enableFeature (optGperftools != null) "tcmalloc")
45
45
-
(enableFeature (optZlib != null) "zlib")
46
46
-
(withFeatureAs (optDb != null) "berkeleydb" optDb)
47
47
-
(withFeature false "helium")
34
34
+
(lib.withFeature false "attach")
35
35
+
(lib.withFeatureAs true "builtins" "")
36
36
+
(lib.enableFeature (optBzip2 != null) "bzip2")
37
37
+
(lib.enableFeature false "diagnostic")
38
38
+
(lib.enableFeature false "java")
39
39
+
(lib.enableFeature (optLeveldb != null) "leveldb")
40
40
+
(lib.enableFeature false "python")
41
41
+
(lib.enableFeature (optSnappy != null) "snappy")
42
42
+
(lib.enableFeature (optLz4 != null) "lz4")
43
43
+
(lib.enableFeature (optGperftools != null) "tcmalloc")
44
44
+
(lib.enableFeature (optZlib != null) "zlib")
45
45
+
(lib.withFeatureAs (optDb != null) "berkeleydb" optDb)
46
46
+
(lib.withFeature false "helium")
48
47
];
49
48
50
49
preConfigure = ''
51
50
./autogen.sh
52
51
'';
53
52
54
54
-
meta = {
53
53
+
meta = with lib; {
55
54
homepage = "http://wiredtiger.com/";
56
55
description = "";
57
56
license = licenses.gpl2;