2004-08-24 14:02:07 +02:00
|
|
|
{stdenv, fetchurl, zlib, ncurses, readline, jdbcSupport ? true, ant ? null}:
|
2004-08-24 13:38:40 +02:00
|
|
|
|
2004-08-24 14:02:07 +02:00
|
|
|
assert zlib != null;
|
|
|
|
assert ncurses != null;
|
|
|
|
assert readline != null;
|
2004-08-24 13:38:40 +02:00
|
|
|
assert jdbcSupport -> ant != null;
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "postgresql-7.4.5";
|
|
|
|
builder = ./builder.sh;
|
|
|
|
|
|
|
|
src = fetchurl {
|
2005-02-15 15:44:19 +01:00
|
|
|
url = http://catamaran.labs.cs.uu.nl/dist/tarballs/postgresql-7.4.5.tar.bz2;
|
2004-08-24 13:38:40 +02:00
|
|
|
md5 = "97e750c8e69c208b75b6efedc5a36efb";
|
|
|
|
};
|
|
|
|
|
2004-08-24 14:02:07 +02:00
|
|
|
inherit readline jdbcSupport;
|
2004-08-24 13:38:40 +02:00
|
|
|
ant = if jdbcSupport then ant else null;
|
|
|
|
|
2004-08-24 14:02:07 +02:00
|
|
|
buildInputs =
|
|
|
|
[zlib ncurses readline (if jdbcSupport then [ant] else [])];
|
2004-08-24 13:38:40 +02:00
|
|
|
}
|