2019-10-01 23:46:38 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, pkgconfig, qmake, mkDerivation,
|
|
|
|
qtsvg,
|
|
|
|
libxml2, postgresql }:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "pgmodeler";
|
2020-01-07 08:10:20 +01:00
|
|
|
version = "0.9.2";
|
2019-10-01 23:46:38 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pgmodeler";
|
|
|
|
repo = "pgmodeler";
|
|
|
|
rev = "v${version}";
|
2020-01-07 08:10:20 +01:00
|
|
|
sha256 = "1wkvg20krfwkziz7skgmwlinx07jm5nl3455payg5brv69zf60kl";
|
2019-10-01 23:46:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig qmake ];
|
|
|
|
qmakeFlags = [ "pgmodeler.pro" "CONFIG+=release" ];
|
|
|
|
|
|
|
|
# todo: libpq would suffice here. Unfortunately this won't work, if one uses only postgresql.lib here.
|
|
|
|
buildInputs = [ postgresql qtsvg ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A database modeling tool for PostgreSQL";
|
|
|
|
longDescription = ''pgModeler (PostgreSQL Database Modeler) is an open source database modeling tool designed for PostgreSQL.'';
|
|
|
|
homepage = https://pgmodeler.io/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.esclear ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|