nixpkgs/pkgs/applications/misc/pgmodeler/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
810 B
Nix
Raw Normal View History

{ lib
2021-01-05 08:02:59 +00:00
, fetchFromGitHub
, pkg-config
, qmake
, mkDerivation
, qtsvg
, libxml2
, postgresql
}:
mkDerivation rec {
pname = "pgmodeler";
2021-12-25 10:17:18 +00:00
version = "0.9.4";
src = fetchFromGitHub {
owner = "pgmodeler";
repo = "pgmodeler";
rev = "v${version}";
2021-12-25 10:17:18 +00:00
sha256 = "sha256-FwLPhIc2ofaB8Z2ZUYMFFt5XdoosEfEOwoIaI7pSxa0=";
};
2021-01-05 08:02:59 +00:00
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;
};
}