postgresql: 9.4.1 -> 9.4.2

This commit is contained in:
William A. Kennington III 2015-05-23 19:38:34 -07:00
parent 5486c08dc2
commit 6775c0696f
2 changed files with 13 additions and 42 deletions

View File

@ -1,44 +1,11 @@
{ stdenv, fetchurl, zlib, readline, libossp_uuid, openssl }: { callPackage, fetchurl, ... } @ args:
with stdenv.lib; callPackage ./generic.nix (args // rec {
psqlSchema = "9.4";
let version = "9.4.1"; in version = "${psqlSchema}.2";
stdenv.mkDerivation rec {
name = "postgresql-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2"; url = "mirror://postgresql/source/v${version}/postgresql-${version}.tar.bz2";
sha256 = "19n3i14bhmw8dacd2kl3n1wzj362qv3fjmal5vsvi580h9ybgp99"; sha256 = "04adpfg2f7ip96rh3jjygx5cpgasrrp1dl2wswjivfk5q68s3zc1";
}; };
})
buildInputs = [ zlib readline openssl ]
++ optionals (!stdenv.isDarwin) [ libossp_uuid ];
enableParallelBuilding = true;
makeFlags = [ "world" ];
configureFlags = [ "--with-openssl" ]
++ optional (!stdenv.isDarwin) "--with-ossp-uuid";
patches = [ ./disable-resolve_symlinks-94.patch ./less-is-more.patch ];
installTargets = [ "install-world" ];
LC_ALL = "C";
passthru = {
inherit readline;
psqlSchema = "9.4";
};
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;
};
}

View File

@ -69,14 +69,12 @@ stdenv.mkDerivation rec {
(mkWith false "perl" null) # Maybe enable some day (mkWith false "perl" null) # Maybe enable some day
(mkWith false "python" null) # Maybe enable some day (mkWith false "python" null) # Maybe enable some day
(mkWith (optKerberos != null) "gssapi" null) (mkWith (optKerberos != null) "gssapi" null)
(mkWith false "krb5" null)
(mkWith (optPam != null) "pam" null) (mkWith (optPam != null) "pam" null)
(mkWith (optOpenldap != null) "ldap" null) (mkWith (optOpenldap != null) "ldap" null)
(mkWith false "bonjour" null) (mkWith false "bonjour" null)
(mkWith (optOpenssl != null) "openssl" null) (mkWith (optOpenssl != null) "openssl" null)
(mkWith (optReadline != null) "readline" null) (mkWith (optReadline != null) "readline" null)
(mkWith false "libedit-preferred" null) (mkWith false "libedit-preferred" null)
(mkWith (optLibossp_uuid != null) "ossp-uuid" null)
(mkWith (optLibxml2 != null) "libxml" null) (mkWith (optLibxml2 != null) "libxml" null)
(mkWith (optLibxslt != null) "libxslt" null) (mkWith (optLibxslt != null) "libxslt" null)
(mkWith (optZlib != null) "zlib" null) (mkWith (optZlib != null) "zlib" null)
@ -84,6 +82,12 @@ stdenv.mkDerivation rec {
(mkWith false "selinux" null) (mkWith false "selinux" null)
] ++ optionals (versionOlder version "9.3.0") [ ] ++ optionals (versionOlder version "9.3.0") [
(mkEnable true "shared" null) (mkEnable true "shared" null)
] ++ optionals (versionAtLeast version "9.4.0") [
(mkEnable false "tap-tests" null)
(mkWith (optLibossp_uuid != null) "uuid" "ossp")
] ++ optionals (versionOlder version "9.4.0") [
(mkWith false "krb5" null)
(mkWith (optLibossp_uuid != null) "ossp-uuid" null)
]; ];
enableParallelBuilding = true; enableParallelBuilding = true;