2012-12-19 13:16:10 +01:00
|
|
|
{ stdenv, fetchurl, zlib, readline }:
|
|
|
|
|
2013-10-17 13:29:49 +02:00
|
|
|
let version = "9.2.5"; in
|
2012-12-19 13:16:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "postgresql-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
2013-10-17 13:29:49 +02:00
|
|
|
sha256 = "22c1edfd6a404bb15fba655863e94f09a10716ded1910a8bc98ee85f413007a4";
|
2012-12-19 13:16:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib readline ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2013-04-05 13:16:05 +02:00
|
|
|
makeFlags = [ "world" ];
|
|
|
|
|
|
|
|
installTargets = [ "install-world" ];
|
2012-12-19 13:16:10 +01:00
|
|
|
|
2013-04-05 13:16:05 +02:00
|
|
|
LC_ALL = "C";
|
2012-12-19 13:16:10 +01:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
inherit readline;
|
2013-04-05 13:48:44 +02:00
|
|
|
psqlSchema = "9.2";
|
2012-12-19 13:16:10 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.postgresql.org/;
|
|
|
|
description = "A powerful, open source object-relational database system";
|
|
|
|
license = "bsd";
|
|
|
|
};
|
|
|
|
}
|