mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
37 lines
855 B
Nix
37 lines
855 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, wrapQtAppsHook
|
|
, pkg-config
|
|
, qmake
|
|
, qtwayland
|
|
, qtsvg
|
|
, postgresql
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pgmodeler";
|
|
version = "1.0.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgmodeler";
|
|
repo = "pgmodeler";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-Wl4MKsZhn5FKEhsezt+j8qpZs+KNHaQrWQ8x7y51MNE=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config qmake wrapQtAppsHook ];
|
|
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 qtwayland ];
|
|
|
|
meta = with lib; {
|
|
description = "A database modeling tool for PostgreSQL";
|
|
homepage = "https://pgmodeler.io/";
|
|
license = licenses.gpl3;
|
|
maintainers = [ maintainers.esclear ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|