nixpkgs/pkgs/applications/misc/pgadmin/default.nix

33 lines
889 B
Nix
Raw Normal View History

2016-04-24 17:22:40 +02:00
{ stdenv, fetchurl, postgresql, wxGTK, libxml2, libxslt, openssl, zlib }:
stdenv.mkDerivation rec {
name = "pgadmin3-${version}";
2016-03-03 22:11:32 +01:00
version = "1.22.1";
src = fetchurl {
url = "http://ftp.postgresql.org/pub/pgadmin3/release/v${version}/src/pgadmin3-${version}.tar.gz";
2016-03-03 22:11:32 +01:00
sha256 = "0gkqpj8cg6jd6yhssrij1cbh960rg9fkjbdzcpryi6axwv0ag7ki";
};
2016-03-27 19:56:27 +02:00
enableParallelBuilding = true;
2016-04-24 17:22:40 +02:00
buildInputs = [ postgresql wxGTK openssl zlib ];
preConfigure = ''
substituteInPlace pgadmin/ver_svn.sh --replace "bin/bash" "$shell"
'';
2016-04-24 17:22:40 +02:00
configureFlags = [
"--with-libxml2=${libxml2.dev}"
"--with-libxslt=${libxslt.dev}"
2016-04-24 17:22:40 +02:00
];
meta = with stdenv.lib; {
description = "PostgreSQL administration GUI tool";
homepage = http://www.pgadmin.org;
license = licenses.gpl2;
maintainers = with maintainers; [ domenkozar wmertens ];
platforms = platforms.unix;
};
}