nixpkgs/pkgs/servers/sql/postgresql/9.0.x.nix

35 lines
814 B
Nix
Raw Normal View History

{ stdenv, fetchurl, zlib, readline, openssl }:
2015-06-04 10:49:37 +01:00
let version = "9.0.20"; in
stdenv.mkDerivation rec {
name = "postgresql-${version}";
src = fetchurl {
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
2015-06-04 10:49:37 +01:00
sha256 = "0vxa90d1ghv6vg4c6kxvm2skypahvlq4sd968q7l9ff3dl145z02";
};
buildInputs = [ zlib readline openssl ];
LC_ALL = "C";
configureFlags = [ "--with-openssl" ];
patches = [ ./less-is-more.patch ];
passthru = {
inherit readline;
psqlSchema = "9.0";
};
meta = with stdenv.lib; {
homepage = http://www.postgresql.org/;
description = "A powerful, open source object-relational database system";
license = licenses.postgresql;
2015-06-04 10:16:44 +01:00
maintainers = [ maintainers.ocharles ];
platforms = platforms.unix;
hydraPlatforms = platforms.linux;
};
}