2009-10-14 16:38:16 +02:00
|
|
|
{ stdenv, fetchurl, zlib, ncurses, readline }:
|
|
|
|
|
2014-10-07 20:54:22 +02:00
|
|
|
let version = "8.4.22"; in
|
2009-10-14 16:38:16 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "postgresql-${version}";
|
2012-08-21 14:41:11 +02:00
|
|
|
|
2009-10-14 16:38:16 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
2014-10-07 20:54:22 +02:00
|
|
|
sha256 = "09iqr9sldiq7jz1rdnywp2wv36lxy5m8kch3vpchd1s4fz75c7aw";
|
2009-10-14 16:38:16 +02:00
|
|
|
};
|
|
|
|
|
2010-06-21 22:43:05 +02:00
|
|
|
buildInputs = [ zlib ncurses readline ];
|
2009-10-14 16:38:16 +02:00
|
|
|
|
2010-02-11 17:18:14 +01:00
|
|
|
LC_ALL = "C";
|
2009-10-14 16:38:16 +02:00
|
|
|
|
2014-03-04 20:52:43 +01:00
|
|
|
patches = [ ./less-is-more.patch ];
|
|
|
|
|
2009-10-14 16:38:16 +02:00
|
|
|
passthru = { inherit readline; };
|
|
|
|
|
|
|
|
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;
|
2009-10-14 16:38:16 +02:00
|
|
|
};
|
|
|
|
}
|