summary refs log tree commit diff
path: root/pkgs/servers/sql
diff options
context:
space:
mode:
authorWilliam A. Kennington III <william@wkennington.com>2015-05-23 19:18:26 -0700
committerWilliam A. Kennington III <william@wkennington.com>2015-05-23 19:18:26 -0700
commit601e713bb84a9c4f27a38d7d4595b49301b98dcc (patch)
treedb154671f18ca23407a65da3e292d6f06073f73b /pkgs/servers/sql
parente9d0c395d1e9e1616ae07fa9eacbbfc9df52d4a8 (diff)
downloadnixpkgs-601e713bb84a9c4f27a38d7d4595b49301b98dcc.tar
nixpkgs-601e713bb84a9c4f27a38d7d4595b49301b98dcc.tar.gz
nixpkgs-601e713bb84a9c4f27a38d7d4595b49301b98dcc.tar.bz2
nixpkgs-601e713bb84a9c4f27a38d7d4595b49301b98dcc.tar.lz
nixpkgs-601e713bb84a9c4f27a38d7d4595b49301b98dcc.tar.xz
nixpkgs-601e713bb84a9c4f27a38d7d4595b49301b98dcc.tar.zst
nixpkgs-601e713bb84a9c4f27a38d7d4595b49301b98dcc.zip
postgresql: 9.2.10 -> 9.2.11
Diffstat (limited to 'pkgs/servers/sql')
-rw-r--r--pkgs/servers/sql/postgresql/8.4.x.nix2
-rw-r--r--pkgs/servers/sql/postgresql/9.0.x.nix2
-rw-r--r--pkgs/servers/sql/postgresql/9.1.x.nix2
-rw-r--r--pkgs/servers/sql/postgresql/9.2.x.nix43
-rw-r--r--pkgs/servers/sql/postgresql/generic.nix10
5 files changed, 20 insertions, 39 deletions
diff --git a/pkgs/servers/sql/postgresql/8.4.x.nix b/pkgs/servers/sql/postgresql/8.4.x.nix
index 0254bbe951d..f946f9fc145 100644
--- a/pkgs/servers/sql/postgresql/8.4.x.nix
+++ b/pkgs/servers/sql/postgresql/8.4.x.nix
@@ -8,4 +8,6 @@ callPackage ./generic.nix (args // rec {
     url = "mirror://postgresql/source/v${version}/postgresql-${version}.tar.bz2";
     sha256 = "09iqr9sldiq7jz1rdnywp2wv36lxy5m8kch3vpchd1s4fz75c7aw";
   };
+
+  patches = [ ./disable-resolve_symlinks.patch ];
 })
diff --git a/pkgs/servers/sql/postgresql/9.0.x.nix b/pkgs/servers/sql/postgresql/9.0.x.nix
index dba42e4fb11..b2a53bfc4b1 100644
--- a/pkgs/servers/sql/postgresql/9.0.x.nix
+++ b/pkgs/servers/sql/postgresql/9.0.x.nix
@@ -8,4 +8,6 @@ callPackage ./generic.nix (args // rec {
     url = "mirror://postgresql/source/v${version}/postgresql-${version}.tar.bz2";
     sha256 = "0vxa90d1ghv6vg4c6kxvm2skypahvlq4sd968q7l9ff3dl145z02";
   };
+
+  patches = [ ./disable-resolve_symlinks.patch ];
 })
diff --git a/pkgs/servers/sql/postgresql/9.1.x.nix b/pkgs/servers/sql/postgresql/9.1.x.nix
index 138bc4a3023..1debe457e1f 100644
--- a/pkgs/servers/sql/postgresql/9.1.x.nix
+++ b/pkgs/servers/sql/postgresql/9.1.x.nix
@@ -8,4 +8,6 @@ callPackage ./generic.nix (args // rec {
     url = "mirror://postgresql/source/v${version}/postgresql-${version}.tar.bz2";
     sha256 = "0mllj1r1648iwm0qj3cj9qxizhlyhqmz94iydnwhf48psvvy4r9b";
   };
+
+  patches = [ ./disable-resolve_symlinks.patch ];
 })
diff --git a/pkgs/servers/sql/postgresql/9.2.x.nix b/pkgs/servers/sql/postgresql/9.2.x.nix
index 3c21a96e9b2..477bb9d2484 100644
--- a/pkgs/servers/sql/postgresql/9.2.x.nix
+++ b/pkgs/servers/sql/postgresql/9.2.x.nix
@@ -1,40 +1,13 @@
-{ stdenv, fetchurl, zlib, readline, openssl }:
+{ callPackage, fetchurl, ... } @ args:
 
-let version = "9.2.10"; in
-
-stdenv.mkDerivation rec {
-  name = "postgresql-${version}";
+callPackage ./generic.nix (args // rec {
+  psqlSchema = "9.2";
+  version = "${psqlSchema}.11";
 
   src = fetchurl {
-    url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
-    sha256 = "1bbkinqzb3c8i0vfzcy2g7djrq0kxz63jgvzda9p0vylxazmnm1m";
+    url = "mirror://postgresql/source/v${version}/postgresql-${version}.tar.bz2";
+    sha256 = "1k5i73ninqyz76zzpi06ajj5qawf30zwr16x8wrgq6swzvsgbck5";
   };
 
-  buildInputs = [ zlib readline openssl ];
-
-  enableParallelBuilding = true;
-
-  makeFlags = [ "world" ];
-
-  configureFlags = [ "--with-openssl" ];
-
-  patches = [ ./disable-resolve_symlinks.patch ./less-is-more.patch ];
-
-  installTargets = [ "install-world" ];
-
-  LC_ALL = "C";
-
-  passthru = {
-    inherit readline;
-    psqlSchema = "9.2";
-  };
-
-  meta = with stdenv.lib; {
-    homepage = http://www.postgresql.org/;
-    description = "A powerful, open source object-relational database system";
-    license = licenses.postgresql;
-    maintainers = with maintaiers; [ ocharles ];
-    platforms = platforms.unix;
-    hydraPlatforms = platforms.linux;
-  };
-}
+  patches = [ ./disable-resolve_symlinks.patch ];
+})
diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix
index 74c7b2906b4..40c5ff660ce 100644
--- a/pkgs/servers/sql/postgresql/generic.nix
+++ b/pkgs/servers/sql/postgresql/generic.nix
@@ -10,7 +10,7 @@
 , walBlockSizeKB ? 8, walSegmentSizeMB ? 16
 
 # Version specific arguments
-, version, src, psqlSchema
+, psqlSchema , version, src, patches ? [ ]
 , ...
 }:
 
@@ -25,6 +25,8 @@ let
   optLibxml2 = shouldUsePkg libxml2;
   optLibxslt = shouldUsePkg libxslt;
   optZlib = shouldUsePkg zlib;
+
+  patches' = [ ./less-is-more.patch ] ++ patches;
 in
 with stdenv.lib;
 stdenv.mkDerivation rec {
@@ -32,7 +34,7 @@ stdenv.mkDerivation rec {
 
   inherit src;
 
-  patches = [ ./less-is-more.patch ];
+  patches = patches';
 
   nativeBuildInputs = [ bison flex ];
   buildInputs = [
@@ -40,8 +42,6 @@ stdenv.mkDerivation rec {
     optLibossp_uuid optLibxml2 optLibxslt optZlib
   ];
 
-  #LC_ALL = "C";
-
   configureFlags = [
     (mkOther                            "sysconfdir"        "/etc")
     (mkOther                            "localstatedir"     "/var")
@@ -81,6 +81,8 @@ stdenv.mkDerivation rec {
     (mkWith   false                     "selinux"           null)
   ];
 
+  enableParallelBuilding = true;
+
   meta = with stdenv.lib; {
     homepage = http://www.postgresql.org/;
     description = "A powerful, open source object-relational database system";