uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
67
pkgs/development/libraries/wiredtiger/default.nix
Normal file
67
pkgs/development/libraries/wiredtiger/default.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{ lib, stdenv, fetchFromGitHub, automake, autoconf, libtool
|
||||
|
||||
# Optional Dependencies
|
||||
, lz4 ? null, snappy ? null, zlib ? null, bzip2 ? null, db ? null
|
||||
, gperftools ? null, leveldb ? null
|
||||
}:
|
||||
|
||||
with lib;
|
||||
let
|
||||
mkFlag = trueStr: falseStr: cond: name: val: "--"
|
||||
+ (if cond then trueStr else falseStr)
|
||||
+ name
|
||||
+ optionalString (val != null && cond != false) "=${val}";
|
||||
mkEnable = mkFlag "enable-" "disable-";
|
||||
mkWith = mkFlag "with-" "without-";
|
||||
|
||||
shouldUsePkg = pkg: if pkg != null && lib.meta.availableOn stdenv.hostPlatform pkg then pkg else null;
|
||||
|
||||
optLz4 = shouldUsePkg lz4;
|
||||
optSnappy = shouldUsePkg snappy;
|
||||
optZlib = shouldUsePkg zlib;
|
||||
optBzip2 = shouldUsePkg bzip2;
|
||||
optDb = shouldUsePkg db;
|
||||
optGperftools = shouldUsePkg gperftools;
|
||||
optLeveldb = shouldUsePkg leveldb;
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wiredtiger";
|
||||
version = "3.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "wiredtiger";
|
||||
owner = "wiredtiger";
|
||||
rev = version;
|
||||
sha256 = "04j2zw8b9jym43r682rh4kpdippxx7iw3ry16nxlbybzar9kgk83";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ automake autoconf libtool ];
|
||||
buildInputs = [ optLz4 optSnappy optZlib optBzip2 optDb optGperftools optLeveldb ];
|
||||
|
||||
configureFlags = [
|
||||
(mkWith false "attach" null)
|
||||
(mkWith true "builtins" "")
|
||||
(mkEnable (optBzip2 != null) "bzip2" null)
|
||||
(mkEnable false "diagnostic" null)
|
||||
(mkEnable false "java" null)
|
||||
(mkEnable (optLeveldb != null) "leveldb" null)
|
||||
(mkEnable false "python" null)
|
||||
(mkEnable (optSnappy != null) "snappy" null)
|
||||
(mkEnable (optLz4 != null) "lz4" null)
|
||||
(mkEnable (optGperftools != null) "tcmalloc" null)
|
||||
(mkEnable (optZlib != null) "zlib" null)
|
||||
(mkWith (optDb != null) "berkeleydb" optDb)
|
||||
(mkWith false "helium" null)
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
./autogen.sh
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://wiredtiger.com/";
|
||||
description = "";
|
||||
license = licenses.gpl2;
|
||||
platforms = intersectLists platforms.unix platforms.x86_64;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue