6d4aeb4377
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
34 lines
806 B
Nix
34 lines
806 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, pkg-config
|
|
, qmake
|
|
, mkDerivation
|
|
, qtsvg
|
|
, postgresql
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
pname = "pgmodeler";
|
|
version = "1.0.0-beta1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgmodeler";
|
|
repo = "pgmodeler";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-5ZIzxo2UvE+aKznF9ZLYFg5z3JkYCB+9rGdVDJl14Hw=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config 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 lib; {
|
|
description = "A database modeling tool for PostgreSQL";
|
|
homepage = "https://pgmodeler.io/";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.esclear ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|