nixpkgs/pkgs/servers/sql/postgresql/9.0.x.nix
2015-06-14 11:37:33 +03:00

35 lines
814 B
Nix

{ stdenv, fetchurl, zlib, readline, openssl }:
let version = "9.0.22"; in
stdenv.mkDerivation rec {
name = "postgresql-${version}";
src = fetchurl {
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
sha256 = "19gq6axjhvlr5zlrzwnll1fbrvai4xh0nb1jki6gmmschl6v5m4l";
};
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;
maintainers = [ maintainers.ocharles ];
platforms = platforms.unix;
hydraPlatforms = platforms.linux;
};
}