wiredtiger: remove global with lib

+14 -15
+14 -15
pkgs/development/libraries/wiredtiger/default.nix
··· 5 5 , gperftools ? null, leveldb ? null 6 6 }: 7 7 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 - (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") 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") 48 47 ]; 49 48 50 49 preConfigure = '' 51 50 ./autogen.sh 52 51 ''; 53 52 54 - meta = { 53 + meta = with lib; { 55 54 homepage = "http://wiredtiger.com/"; 56 55 description = ""; 57 56 license = licenses.gpl2;