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
57
pkgs/development/libraries/db/generic.nix
Normal file
57
pkgs/development/libraries/db/generic.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ lib, stdenv, fetchurl
|
||||
, cxxSupport ? true
|
||||
, compat185 ? true
|
||||
, dbmSupport ? false
|
||||
|
||||
# Options from inherited versions
|
||||
, version, sha256
|
||||
, extraPatches ? [ ]
|
||||
, license ? lib.licenses.sleepycat
|
||||
, drvArgs ? {}
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
pname = "db";
|
||||
inherit version;
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.oracle.com/berkeley-db/${pname}-${version}.tar.gz";
|
||||
sha256 = sha256;
|
||||
};
|
||||
|
||||
patches = extraPatches;
|
||||
|
||||
outputs = [ "bin" "out" "dev" ];
|
||||
|
||||
configureFlags =
|
||||
[
|
||||
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
|
||||
(if compat185 then "--enable-compat185" else "--disable-compat185")
|
||||
]
|
||||
++ lib.optional dbmSupport "--enable-dbm"
|
||||
++ lib.optional stdenv.isFreeBSD "--with-pic";
|
||||
|
||||
preConfigure = ''
|
||||
cd build_unix
|
||||
configureScript=../dist/configure
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
rm -rf $out/docs
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = ''
|
||||
make examples_c examples_cxx
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/index.html";
|
||||
description = "Berkeley DB";
|
||||
license = license;
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
} // drvArgs)
|
||||
Loading…
Add table
Add a link
Reference in a new issue