2009-10-14 15:38:16 +01:00
|
|
|
{ stdenv, fetchurl, zlib, ncurses, readline }:
|
|
|
|
|
2014-05-01 12:48:01 +01:00
|
|
|
let version = "8.4.21"; in
|
2009-10-14 15:38:16 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "postgresql-${version}";
|
2012-08-21 13:41:11 +01:00
|
|
|
|
2009-10-14 15:38:16 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
2014-05-01 12:48:01 +01:00
|
|
|
sha256 = "388f67e59f2a16c27e84f50656f5d755adf3d0a883138366d091aa0c727c1e2c";
|
2009-10-14 15:38:16 +01:00
|
|
|
};
|
|
|
|
|
2010-06-21 21:43:05 +01:00
|
|
|
buildInputs = [ zlib ncurses readline ];
|
2009-10-14 15:38:16 +01:00
|
|
|
|
2010-02-11 16:18:14 +00:00
|
|
|
LC_ALL = "C";
|
2009-10-14 15:38:16 +01:00
|
|
|
|
2014-03-04 19:52:43 +00:00
|
|
|
patches = [ ./less-is-more.patch ];
|
|
|
|
|
2009-10-14 15:38:16 +01:00
|
|
|
passthru = { inherit readline; };
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.postgresql.org/;
|
|
|
|
description = "A powerful, open source object-relational database system";
|
2014-09-04 19:38:12 +01:00
|
|
|
license = stdenv.lib.licenses.postgresql;
|
2014-02-13 18:49:30 +00:00
|
|
|
maintainers = [ stdenv.lib.maintainers.ocharles ];
|
|
|
|
hydraPlatforms = stdenv.lib.platforms.linux;
|
2009-10-14 15:38:16 +01:00
|
|
|
};
|
|
|
|
}
|