2012-02-22 20:40:10 +04:00
|
|
|
{ stdenv, fetchurl, zlib, readline }:
|
|
|
|
|
2012-02-28 22:40:27 +04:00
|
|
|
let version = "9.1.3"; in
|
2012-02-22 20:40:10 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "postgresql-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
2012-02-28 22:40:27 +04:00
|
|
|
sha256 = "1mfmqimd3fvvpw60b0haql510l00nhyfgp4wpkcw2ca0c8580ybs";
|
2012-02-22 20:40:10 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib readline ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
LC_ALL = "C";
|
|
|
|
|
2012-02-22 21:27:06 +04:00
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
mkdir -p $out/share/man
|
|
|
|
cp -rvd doc/src/sgml/man1 $out/share/man
|
|
|
|
'';
|
|
|
|
|
2012-02-22 20:40:10 +04:00
|
|
|
passthru = {
|
|
|
|
inherit readline;
|
2012-02-22 21:27:06 +04:00
|
|
|
psqlSchema = "9.1";
|
2012-02-22 20:40:10 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.postgresql.org/;
|
|
|
|
description = "A powerful, open source object-relational database system";
|
|
|
|
license = "bsd";
|
|
|
|
};
|
|
|
|
}
|