about summary refs log tree commit diff
path: root/pkgs/servers/sql
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-01 21:17:27 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2015-06-04 14:54:49 +0200
commit5efd73fce6f3e07fb255c4ad895994402beb034a (patch)
tree2bde239ba5725cab3014577e09a75a4136b63877 /pkgs/servers/sql
parente3ab9804ba86bfca50e522ddfbdc7c3df9e79d64 (diff)
downloadnixlib-5efd73fce6f3e07fb255c4ad895994402beb034a.tar
nixlib-5efd73fce6f3e07fb255c4ad895994402beb034a.tar.gz
nixlib-5efd73fce6f3e07fb255c4ad895994402beb034a.tar.bz2
nixlib-5efd73fce6f3e07fb255c4ad895994402beb034a.tar.lz
nixlib-5efd73fce6f3e07fb255c4ad895994402beb034a.tar.xz
nixlib-5efd73fce6f3e07fb255c4ad895994402beb034a.tar.zst
nixlib-5efd73fce6f3e07fb255c4ad895994402beb034a.zip
Revert "postgresql: 9.0.19 -> 9.0.20"
This reverts commit 8c99f2e3d65add9bca5df66f7f2f3014ea337c85.
Diffstat (limited to 'pkgs/servers/sql')
-rw-r--r--pkgs/servers/sql/postgresql/9.0.x.nix36
-rw-r--r--pkgs/servers/sql/postgresql/generic.nix56
2 files changed, 58 insertions, 34 deletions
diff --git a/pkgs/servers/sql/postgresql/9.0.x.nix b/pkgs/servers/sql/postgresql/9.0.x.nix
index 6c24e6aa4c45..a27bc012b6ed 100644
--- a/pkgs/servers/sql/postgresql/9.0.x.nix
+++ b/pkgs/servers/sql/postgresql/9.0.x.nix
@@ -1,10 +1,34 @@
-{ callPackage, fetchurl, ... } @ args:
+{ stdenv, fetchurl, zlib, readline, openssl }:
 
-callPackage ./generic.nix (args // rec {
-  version = "9.0.20";
+let version = "9.0.19"; in
+
+stdenv.mkDerivation rec {
+  name = "postgresql-${version}";
 
   src = fetchurl {
-    url = "mirror://postgresql/source/v${version}/postgresql-${version}.tar.bz2";
-    sha256 = "0vxa90d1ghv6vg4c6kxvm2skypahvlq4sd968q7l9ff3dl145z02";
+    url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
+    sha256 = "1h45jdbzdcvprdsi9gija81s3ny46h3faf9f007gza4vm6y15bak";
+  };
+
+  buildInputs = [ zlib readline openssl ];
+
+  LC_ALL = "C";
+
+  configureFlags = [ "--with-openssl" ];
+
+  patches = [ ./less-is-more.patch ];
+
+  passthru = {
+    inherit readline;
+    psqlSchema = "9.0";
+  };
+
+  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;
   };
-})
+}
diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix
index b2af6dd53316..d7fd28ccb689 100644
--- a/pkgs/servers/sql/postgresql/generic.nix
+++ b/pkgs/servers/sql/postgresql/generic.nix
@@ -43,34 +43,34 @@ stdenv.mkDerivation rec {
   #LC_ALL = "C";
 
   configureFlags = [
-    (mkOther                            "sysconfdir"        "/etc")
-    (mkOther                            "localstatedir"     "/var")
-    (mkEnable true                      "integer-datetimes" null)
-    (mkEnable true                      "nls"               null)
-    (mkWith   true                      "pgport"            "5432")
-    (mkEnable true                      "shared"            null)
-    (mkEnable true                      "rpath"             null)
-    (mkEnable true                      "spinlocks"         null)
-    (mkEnable false                     "debug"             null)
-    (mkEnable false                     "profiling"         null)
-    (mkEnable false                     "coverage"          null)
-    (mkEnable false                     "dtrace"            null)
-    (mkWith   true                      "blocksize"         (toString blockSizeKB))
-    (mkWith   true                      "segsize"           (toString segmentSizeGB))
-    (mkWith   true                      "wal-blocksize"     (toString walBlockSizeKB))
-    (mkWith   true                      "wal-segsize"       (toString walSegmentSizeMB))
-    (mkEnable true                      "depend"            null)
-    (mkEnable false                     "cassert"           null)
-    (mkEnable true                      "thread-safety"     null)
-    (mkWith   false                     "tcl"               null)  # Maybe enable some day
-    (mkWith   false                     "perl"              null)  # Maybe enable some day
-    (mkWith   false                     "python"            null)  # Maybe enable some day
-    (mkWith   (optKerberos != null)     "gssapi"            null)
-    (mkWith   false                     "krb5"              null)
-    (mkWith   (optPam != null)          "pam"               null)
-    (mkWith   (optOpenldap != null)     "ldap"              null)
-    (mkWith   false                     "bonjour"           null)
-    (mkWith   (optOpenssl != null)      "openssl"           null)
+    (mkOther                        "sysconfdir"        "/etc")
+    (mkOther                        "localstatedir"     "/var")
+    (mkEnable true                  "integer-datetimes" null)
+    (mkEnable true                  "nls"               null)
+    (mkWith   true                  "pgport"            "5432")
+    (mkEnable true                  "shared"            null)
+    (mkEnable true                  "rpath"             null)
+    (mkEnable true                  "spinlocks"         null)
+    (mkEnable false                 "debug"             null)
+    (mkEnable false                 "profiling"         null)
+    (mkEnable false                 "coverage"          null)
+    (mkEnable false                 "dtrace"            null)
+    (mkWith   true                  "blocksize"         (toString blockSizeKB))
+    (mkWith   true                  "segsize"           (toString segmentSizeGB))
+    (mkWith   true                  "wal-blocksize"     (toString walBlockSizeKB))
+    (mkWith   true                  "wal-segsize"       (toString walSegmentSizeMB))
+    (mkEnable true                  "autodepend"        null)
+    (mkEnable false                 "cassert"           null)
+    (mkEnable true                  "thread-safety"     null)
+    (mkWith   false                 "tcl"               null)  # Maybe enable some day
+    (mkWith   false                 "perl"              null)  # Maybe enable some day
+    (mkWith   false                 "python"            null)  # Maybe enable some day
+    (mkWith   (optKerberos != null) "gssapi"            null)
+    (mkWith   false                 "krb5"              null)
+    (mkWith   (optPam != null)      "pam"               null)
+    (mkWith   (optOpenldap != null) "ldap"              null)
+    (mkWith   false                 "bonjour"           null)
+    (mkWith   (optOpenssl != null)       "openssl"           null)
     (mkWith   (optReadline != null)     "readline"          null)
     (mkWith   false                     "libedit-preferred" null)
     (mkWith   (optLibossp_uuid != null) "ossp-uuid"         null)