2010-12-13 21:55:34 +00:00
|
|
|
{ stdenv, fetchurl, zlib, readline }:
|
|
|
|
|
2014-05-01 12:48:01 +01:00
|
|
|
let version = "9.0.17"; in
|
2010-12-13 21:55:34 +00: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 {
|
|
|
|
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
2014-05-01 12:48:01 +01:00
|
|
|
sha256 = "d2f6d09cf941e7cbab6ee399f14080dbe822af58fda9fd132efb05c2b7d160ad";
|
2010-12-13 21:55:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib readline ];
|
|
|
|
|
|
|
|
LC_ALL = "C";
|
|
|
|
|
2014-03-04 19:52:43 +00:00
|
|
|
patches = [ ./less-is-more.patch ];
|
|
|
|
|
2010-12-13 21:55:34 +00:00
|
|
|
passthru = {
|
|
|
|
inherit readline;
|
|
|
|
psqlSchema = "9.0";
|
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
2010-12-13 21:55:34 +00:00
|
|
|
};
|
|
|
|
}
|