2012-02-22 16:40:10 +00:00
|
|
|
{ stdenv, fetchurl, zlib, readline }:
|
|
|
|
|
2014-07-30 17:13:51 +01:00
|
|
|
let version = "9.1.14"; in
|
2012-02-22 16:40:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "postgresql-${version}";
|
2012-08-21 13:41:11 +01:00
|
|
|
|
2012-02-22 16:40:10 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
2014-07-30 17:13:51 +01:00
|
|
|
sha256 = "d0647ce563d18ae02bf68c5dd646a4c75e8b45b3a4fada64d481371fdc16f522";
|
2012-02-22 16:40:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib readline ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
LC_ALL = "C";
|
|
|
|
|
2014-03-04 19:52:43 +00:00
|
|
|
patches = [ ./less-is-more.patch ];
|
|
|
|
|
2012-02-22 17:27:06 +00:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
mkdir -p $out/share/man
|
|
|
|
cp -rvd doc/src/sgml/man1 $out/share/man
|
|
|
|
'';
|
|
|
|
|
2012-02-22 16:40:10 +00:00
|
|
|
passthru = {
|
|
|
|
inherit readline;
|
2012-02-22 17:27:06 +00:00
|
|
|
psqlSchema = "9.1";
|
2012-02-22 16:40:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.postgresql.org/;
|
|
|
|
description = "A powerful, open source object-relational database system";
|
|
|
|
license = "bsd";
|
2014-02-13 18:49:30 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ocharles ];
|
|
|
|
hydraPlatforms = stdenv.lib.platforms.linux;
|
2012-02-22 16:40:10 +00:00
|
|
|
};
|
|
|
|
}
|