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