2017-10-11 20:52:07 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, postgresql, wxGTK, libxml2, libxslt, openssl, zlib, makeDesktopItem }:
|
2010-07-28 12:55:54 +01:00
|
|
|
|
2009-10-08 10:26:47 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "pgadmin3";
|
2017-10-11 20:52:07 +01:00
|
|
|
version = "1.22.2";
|
2008-01-29 01:24:54 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://ftp.postgresql.org/pub/pgadmin/pgadmin3/v${version}/src/pgadmin3-${version}.tar.gz";
|
2017-10-11 20:52:07 +01:00
|
|
|
sha256 = "1b24b356h8z188nci30xrb57l7kxjqjnh6dq9ws638phsgiv0s4v";
|
2008-01-29 01:24:54 +00:00
|
|
|
};
|
|
|
|
|
2016-03-27 18:56:27 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-04-24 16:22:40 +01:00
|
|
|
buildInputs = [ postgresql wxGTK openssl zlib ];
|
2008-01-29 01:24:54 +00:00
|
|
|
|
2017-10-11 20:52:07 +01:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
sha256 = "09hp7s3zjz80rpx2j3xyznwswwfxzi70z7c05dzrdk74mqjjpkfk";
|
|
|
|
name = "843344.patch";
|
|
|
|
url = "https://sources.debian.net/data/main/p/pgadmin3/1.22.2-1/debian/patches/843344";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2013-08-08 15:49:26 +01:00
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace pgadmin/ver_svn.sh --replace "bin/bash" "$shell"
|
|
|
|
'';
|
|
|
|
|
2016-04-24 16:22:40 +01:00
|
|
|
configureFlags = [
|
2017-10-11 20:52:07 +01:00
|
|
|
"--with-pgsql=${postgresql}"
|
2016-08-30 00:57:21 +01:00
|
|
|
"--with-libxml2=${libxml2.dev}"
|
2016-08-23 01:34:38 +01:00
|
|
|
"--with-libxslt=${libxslt.dev}"
|
2016-04-24 16:22:40 +01:00
|
|
|
];
|
|
|
|
|
2017-08-22 19:50:04 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-07-28 12:55:54 +01:00
|
|
|
description = "PostgreSQL administration GUI tool";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.pgadmin.org";
|
2013-08-08 15:49:26 +01:00
|
|
|
license = licenses.gpl2;
|
2016-05-17 12:57:28 +01:00
|
|
|
maintainers = with maintainers; [ domenkozar wmertens ];
|
2013-08-08 15:49:26 +01:00
|
|
|
platforms = platforms.unix;
|
2010-07-28 12:55:54 +01:00
|
|
|
};
|
2017-07-09 20:04:47 +01:00
|
|
|
|
|
|
|
postFixup = let
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "pgAdmin";
|
|
|
|
desktopName = "pgAdmin III";
|
|
|
|
genericName = "SQL Administration";
|
|
|
|
exec = "pgadmin3";
|
|
|
|
icon = "pgAdmin3";
|
|
|
|
type = "Application";
|
|
|
|
categories = "Application;Development;";
|
|
|
|
mimeType = "text/html";
|
|
|
|
};
|
|
|
|
in ''
|
|
|
|
mkdir -p $out/share/pixmaps;
|
|
|
|
cp pgadmin/include/images/pgAdmin3.png $out/share/pixmaps/;
|
|
|
|
cp -rv ${desktopItem}/share/applications $out/share/
|
|
|
|
'';
|
2008-01-29 01:24:54 +00:00
|
|
|
}
|