summary refs log tree commit diff
path: root/pkgs/development/libraries/db/generic.nix
diff options
context:
space:
mode:
authorDaiderd Jordan <daiderd@gmail.com>2016-11-13 22:48:52 +0100
committerDaiderd Jordan <daiderd@gmail.com>2016-11-13 23:02:00 +0100
commitb82ad1ba7695e92421e168c26d1915c00f4374ce (patch)
tree6492125286bc870ec305fa719b7cba5d2e676622 /pkgs/development/libraries/db/generic.nix
parentc7d1925b6eb805acbeba9e9324969bf67965d350 (diff)
downloadnixpkgs-b82ad1ba7695e92421e168c26d1915c00f4374ce.tar
nixpkgs-b82ad1ba7695e92421e168c26d1915c00f4374ce.tar.gz
nixpkgs-b82ad1ba7695e92421e168c26d1915c00f4374ce.tar.bz2
nixpkgs-b82ad1ba7695e92421e168c26d1915c00f4374ce.tar.lz
nixpkgs-b82ad1ba7695e92421e168c26d1915c00f4374ce.tar.xz
nixpkgs-b82ad1ba7695e92421e168c26d1915c00f4374ce.tar.zst
nixpkgs-b82ad1ba7695e92421e168c26d1915c00f4374ce.zip
db: fix all versions with libc++3.8
Diffstat (limited to 'pkgs/development/libraries/db/generic.nix')
-rw-r--r--pkgs/development/libraries/db/generic.nix10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/libraries/db/generic.nix b/pkgs/development/libraries/db/generic.nix
index fdc828effdf..a6f9c676bba 100644
--- a/pkgs/development/libraries/db/generic.nix
+++ b/pkgs/development/libraries/db/generic.nix
@@ -4,9 +4,8 @@
 
 # Options from inherited versions
 , version, sha256
-, extraPatches ? [ ]
+, patchSrc ? "src", extraPatches ? [ ]
 , license ? stdenv.lib.licenses.sleepycat
-, branch ? null
 , drvArgs ? {}
 }:
 
@@ -36,11 +35,16 @@ stdenv.mkDerivation (rec {
     rm -rf $out/docs
   '';
 
+  doCheck = true;
+
+  checkPhase = ''
+    make examples_c examples_cxx
+  '';
+
   meta = with stdenv.lib; {
     homepage = "http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/index.html";
     description = "Berkeley DB";
     license = license;
     platforms = platforms.unix;
-    branch = branch;
   };
 } // drvArgs)