2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2023-02-02 18:25:31 +00:00
|
|
|
, stdenv
|
2021-01-09 10:05:03 +00:00
|
|
|
, fetchFromGitHub
|
2023-02-02 18:25:31 +00:00
|
|
|
, wrapQtAppsHook
|
2021-01-09 10:05:03 +00:00
|
|
|
, pkg-config
|
|
|
|
, qmake
|
2023-02-02 18:25:31 +00:00
|
|
|
, qtwayland
|
2021-01-09 10:05:03 +00:00
|
|
|
, qtsvg
|
|
|
|
, postgresql
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pgmodeler";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "1.0.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pgmodeler";
|
|
|
|
repo = "pgmodeler";
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-1d+zox46h22ox9zC+SvN3w3LkpHmN1jpf/tDPD5D80s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeBuildInputs = [ pkg-config qmake wrapQtAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
qmakeFlags = [ "pgmodeler.pro" "CONFIG+=release" ];
|
|
|
|
|
|
|
|
# todo: libpq would suffice here. Unfortunately this won't work, if one uses only postgresql.lib here.
|
2023-02-02 18:25:31 +00:00
|
|
|
buildInputs = [ postgresql qtsvg qtwayland ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A database modeling tool for PostgreSQL";
|
|
|
|
homepage = "https://pgmodeler.io/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.esclear ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|