{ stdenv, fetchurl, zlib, ncurses, readline }: let version = "8.4.16"; in stdenv.mkDerivation rec { name = "postgresql-${version}"; src = fetchurl { url = "mirror://postgresql/source/v${version}/${name}.tar.bz2"; sha256 = "0bv10jh9pg523rzgbqjq4lzq4ai3275pqhkg0qkr40ap756xj0wd"; }; buildInputs = [ zlib ncurses readline ]; LC_ALL = "C"; passthru = { inherit readline; }; meta = { homepage = http://www.postgresql.org/; description = "A powerful, open source object-relational database system"; license = "bsd"; }; }