2015-06-01 20:17:27 +01:00
|
|
|
{ stdenv, fetchurl, zlib, readline, openssl }:
|
2010-12-13 21:55:34 +00:00
|
|
|
|
2015-06-04 10:49:37 +01:00
|
|
|
let version = "9.0.20"; in
|
2015-06-01 20:17:27 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "postgresql-${version}";
|
2012-08-21 13:41:11 +01:00
|
|
|
|
2010-12-13 21:55:34 +00:00
|
|
|
src = fetchurl {
|
2015-06-01 20:17:27 +01:00
|
|
|
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
2015-06-04 10:49:37 +01:00
|
|
|
sha256 = "0vxa90d1ghv6vg4c6kxvm2skypahvlq4sd968q7l9ff3dl145z02";
|
2015-06-01 20:17:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2015-06-04 10:16:44 +01:00
|
|
|
maintainers = [ maintainers.ocharles ];
|
2015-06-01 20:17:27 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
hydraPlatforms = platforms.linux;
|
2010-12-13 21:55:34 +00:00
|
|
|
};
|
2015-06-01 20:17:27 +01:00
|
|
|
}
|