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

41 lines
950 B
Nix
Raw Normal View History

{ stdenv, fetchurl, zlib, readline, openssl }:
2012-12-19 04:16:10 -08:00
2015-06-04 02:49:37 -07:00
let version = "9.2.11"; in
stdenv.mkDerivation rec {
name = "postgresql-${version}";
2012-12-19 04:16:10 -08:00
src = fetchurl {
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
2015-06-04 02:49:37 -07:00
sha256 = "1k5i73ninqyz76zzpi06ajj5qawf30zwr16x8wrgq6swzvsgbck5";
2012-12-19 04:16:10 -08:00
};
buildInputs = [ zlib readline openssl ];
enableParallelBuilding = true;
makeFlags = [ "world" ];
configureFlags = [ "--with-openssl" ];
patches = [ ./disable-resolve_symlinks.patch ./less-is-more.patch ];
installTargets = [ "install-world" ];
LC_ALL = "C";
passthru = {
inherit readline;
psqlSchema = "9.2";
};
meta = with stdenv.lib; {
homepage = http://www.postgresql.org/;
description = "A powerful, open source object-relational database system";
license = licenses.postgresql;
2015-06-04 02:16:44 -07:00
maintainers = [ maintainers.ocharles ];
platforms = platforms.unix;
hydraPlatforms = platforms.linux;
};
}