2012-02-22 17:40:10 +01:00
|
|
|
{ stdenv, fetchurl, zlib, readline }:
|
|
|
|
|
2013-02-07 16:32:00 +01:00
|
|
|
let version = "9.1.8"; in
|
2012-02-22 17:40:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "postgresql-${version}";
|
2012-08-21 14:41:11 +02:00
|
|
|
|
2012-02-22 17:40:10 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
|
2013-02-07 16:32:00 +01:00
|
|
|
sha256 = "0vacnhqs9mrjrx9vh4r66a9smwl1d4qrmjlsq3ydnqj0lbfzk20x";
|
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";
|
|
|
|
};
|
|
|
|
}
|