2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2021-01-05 09:02:59 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, qmake
|
|
|
|
, mkDerivation
|
|
|
|
, qtsvg
|
|
|
|
, libxml2
|
|
|
|
, postgresql
|
|
|
|
}:
|
2019-10-01 23:46:38 +02:00
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "pgmodeler";
|
2021-01-05 09:02:59 +01:00
|
|
|
version = "0.9.3";
|
2019-10-01 23:46:38 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pgmodeler";
|
|
|
|
repo = "pgmodeler";
|
|
|
|
rev = "v${version}";
|
2021-01-05 09:02:59 +01:00
|
|
|
sha256 = "1bci5x418dbnkny7hn0b5q5lxyajrgl3frv41ji0hcw9vivrds2g";
|
2019-10-01 23:46:38 +02:00
|
|
|
};
|
|
|
|
|
2021-01-05 09:02:59 +01:00
|
|
|
nativeBuildInputs = [ pkg-config qmake ];
|
2019-10-01 23:46:38 +02:00
|
|
|
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 ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-10-01 23:46:38 +02:00
|
|
|
description = "A database modeling tool for PostgreSQL";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://pgmodeler.io/";
|
2019-10-01 23:46:38 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.esclear ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2020-04-01 03:11:51 +02:00
|
|
|
}
|