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