about summary refs log tree commit diff
path: root/pkgs/development/libraries/db
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2014-11-17 10:14:42 +0100
committerVladimír Čunát <vcunat@gmail.com>2014-11-17 10:17:17 +0100
commit5b0756cd21a6d7e00baacf8ba2141ee70f66a552 (patch)
tree9b6907a77214b1fa3b0f953647326be948108c31 /pkgs/development/libraries/db
parentadeb4fb56b20dad055ffa87ad5cd28416fb5a40b (diff)
downloadnixlib-5b0756cd21a6d7e00baacf8ba2141ee70f66a552.tar
nixlib-5b0756cd21a6d7e00baacf8ba2141ee70f66a552.tar.gz
nixlib-5b0756cd21a6d7e00baacf8ba2141ee70f66a552.tar.bz2
nixlib-5b0756cd21a6d7e00baacf8ba2141ee70f66a552.tar.lz
nixlib-5b0756cd21a6d7e00baacf8ba2141ee70f66a552.tar.xz
nixlib-5b0756cd21a6d7e00baacf8ba2141ee70f66a552.tar.zst
nixlib-5b0756cd21a6d7e00baacf8ba2141ee70f66a552.zip
db-*: only use the osx.patch for db5 where it applies
This unbreaks builds of all other versions (4.* and 6.*).
Diffstat (limited to 'pkgs/development/libraries/db')
-rw-r--r--pkgs/development/libraries/db/db-5.3.nix1
-rw-r--r--pkgs/development/libraries/db/generic.nix4
-rw-r--r--pkgs/development/libraries/db/osx.patch4
3 files changed, 3 insertions, 6 deletions
diff --git a/pkgs/development/libraries/db/db-5.3.nix b/pkgs/development/libraries/db/db-5.3.nix
index af16f1ddf549..fe376ee3b4f8 100644
--- a/pkgs/development/libraries/db/db-5.3.nix
+++ b/pkgs/development/libraries/db/db-5.3.nix
@@ -3,4 +3,5 @@
 import ./generic.nix (args // rec {
   version = "5.3.28";
   sha256 = "0a1n5hbl7027fbz5lm0vp0zzfp1hmxnz14wx3zl9563h83br5ag0";
+  extraPatches = [ ./osx.patch ];
 })
diff --git a/pkgs/development/libraries/db/generic.nix b/pkgs/development/libraries/db/generic.nix
index 9d3f87ad5cb6..6217bc461249 100644
--- a/pkgs/development/libraries/db/generic.nix
+++ b/pkgs/development/libraries/db/generic.nix
@@ -18,10 +18,6 @@ stdenv.mkDerivation rec {
 
   patches = extraPatches;
 
-  patchPhase = ''
-    patch src/dbinc/atomic.h < ${./osx.patch}
-  '';
-
   configureFlags = [
     (if cxxSupport then "--enable-cxx" else "--disable-cxx")
     (if compat185 then "--enable-compat185" else "--disable-compat185")
diff --git a/pkgs/development/libraries/db/osx.patch b/pkgs/development/libraries/db/osx.patch
index 398aa1d37002..438fa7eedd71 100644
--- a/pkgs/development/libraries/db/osx.patch
+++ b/pkgs/development/libraries/db/osx.patch
@@ -1,5 +1,5 @@
---- src/dbinc/atomic.h	2013-03-12 14:07:22.000000000 -0400
-+++ src/dbinc/atomic.h.change	2013-03-12 14:06:35.000000000 -0400
+--- a/src/dbinc/atomic.h	2013-03-12 14:07:22.000000000 -0400
++++ b/src/dbinc/atomic.h.change	2013-03-12 14:06:35.000000000 -0400
 @@ -144,7 +144,7 @@
  #define	atomic_inc(env, p)	__atomic_inc(p)
  #define	atomic_dec(env, p)	__atomic_dec(p)