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