2015-06-01 21:17:19 +02:00
|
|
|
{ stdenv, fetchurl, zlib, readline, openssl }:
|
2012-02-22 17:40:10 +01:00
|
|
|
|
2015-06-04 11:49:37 +02:00
|
|
|
let version = "9.1.16"; in
|
2015-06-01 21:17:19 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "postgresql-${version}";
|
2012-08-21 14:41:11 +02:00
|
|
|
|
2012-02-22 17:40:10 +01:00
|
|
|
src = fetchurl {
|
2015-06-01 21:17:19 +02:00
|
|
|
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
2015-06-04 11:49:37 +02:00
|
|
|
sha256 = "0mllj1r1648iwm0qj3cj9qxizhlyhqmz94iydnwhf48psvvy4r9b";
|
2015-06-01 21:17:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib readline openssl ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
LC_ALL = "C";
|
|
|
|
|
|
|
|
configureFlags = [ "--with-openssl" ];
|
|
|
|
|
|
|
|
patches = [ ./less-is-more.patch ];
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
mkdir -p $out/share/man
|
|
|
|
cp -rvd doc/src/sgml/man1 $out/share/man
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit readline;
|
|
|
|
psqlSchema = "9.1";
|
|
|
|
};
|
|
|
|
|
|
|
|
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:19 +02:00
|
|
|
platforms = platforms.unix;
|
|
|
|
hydraPlatforms = platforms.linux;
|
2012-02-22 17:40:10 +01:00
|
|
|
};
|
2015-06-01 21:17:19 +02:00
|
|
|
}
|