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