nixpkgs-suyu/pkgs/servers/sql/postgresql/9.1.x.nix

43 lines
957 B
Nix
Raw Normal View History

{ stdenv, fetchurl, zlib, readline, openssl }:
2015-06-04 11:49:37 +02:00
let version = "9.1.16"; in
stdenv.mkDerivation rec {
name = "postgresql-${version}";
src = fetchurl {
url = "mirror://postgresql/source/v${version}/${name}.tar.bz2";
2015-06-04 11:49:37 +02:00
sha256 = "0mllj1r1648iwm0qj3cj9qxizhlyhqmz94iydnwhf48psvvy4r9b";
};
buildInputs = [ zlib readline openssl ];
enableParallelBuilding = true;
LC_ALL = "C";
configureFlags = [ "--with-openssl" ];
patches = [ ./less-is-more.patch ];
postInstall =
''
mkdir -p $out/share/man
cp -rvd doc/src/sgml/man1 $out/share/man
'';
passthru = {
inherit readline;
psqlSchema = "9.1";
};
meta = with stdenv.lib; {
homepage = http://www.postgresql.org/;
description = "A powerful, open source object-relational database system";
license = licenses.postgresql;
2015-06-04 11:16:44 +02:00
maintainers = [ maintainers.ocharles ];
platforms = platforms.unix;
hydraPlatforms = platforms.linux;
};
}