2015-03-23 18:41:55 +01:00
|
|
|
{ stdenv, fetchurl, zlib, readline, openssl }:
|
2012-02-22 17:40:10 +01:00
|
|
|
|
2015-02-12 20:38:35 +01:00
|
|
|
let version = "9.1.15"; in
|
2012-02-22 17:40:10 +01: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 {
|
|
|
|
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
2015-02-12 20:38:35 +01:00
|
|
|
sha256 = "0pyyw0cy91z9wkqf8qzkwsy8cyjps0s94c9czz6mzhyd2npxxmk7";
|
2012-02-22 17:40:10 +01:00
|
|
|
};
|
|
|
|
|
2015-03-23 18:41:55 +01:00
|
|
|
buildInputs = [ zlib readline openssl ];
|
2012-02-22 17:40:10 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
LC_ALL = "C";
|
|
|
|
|
2015-03-23 18:41:55 +01:00
|
|
|
configureFlags = [ "--with-openssl" ];
|
|
|
|
|
2014-03-04 20:52:43 +01:00
|
|
|
patches = [ ./less-is-more.patch ];
|
|
|
|
|
2012-02-22 18:27:06 +01:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
mkdir -p $out/share/man
|
|
|
|
cp -rvd doc/src/sgml/man1 $out/share/man
|
|
|
|
'';
|
|
|
|
|
2012-02-22 17:40:10 +01:00
|
|
|
passthru = {
|
|
|
|
inherit readline;
|
2012-02-22 18:27:06 +01:00
|
|
|
psqlSchema = "9.1";
|
2012-02-22 17:40:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.postgresql.org/;
|
|
|
|
description = "A powerful, open source object-relational database system";
|
2014-09-04 20:38:12 +02:00
|
|
|
license = stdenv.lib.licenses.postgresql;
|
2014-02-13 19:49:30 +01:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ocharles ];
|
|
|
|
hydraPlatforms = stdenv.lib.platforms.linux;
|
2012-02-22 17:40:10 +01:00
|
|
|
};
|
|
|
|
}
|