2022-10-21 18:38:19 +00:00
|
|
|
{stdenv, lib, vala, meson, ninja, pkg-config, fetchFromGitea, gobject-introspection, glib, gtk4, libgflow}:
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-10-21 18:38:19 +00:00
|
|
|
pname = "libgtkflow4";
|
|
|
|
version = "0.2.6";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
outputBin = "devdoc"; # demo app
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
src = fetchFromGitea {
|
|
|
|
domain = "notabug.org";
|
|
|
|
owner = "grindhold";
|
2022-10-21 18:38:19 +00:00
|
|
|
repo = "libgtkflow";
|
|
|
|
rev = "gtkflow4_${version}";
|
|
|
|
hash = "sha256-JoVq7U5JQ3pRxptR7igWFw7lcBTsgr3aVXxayLqhyFo=";
|
2022-05-18 14:49:53 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
vala
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
gtk4
|
2022-05-18 14:49:53 +00:00
|
|
|
glib
|
2022-10-21 18:38:19 +00:00
|
|
|
libgflow
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
postFixup = ''
|
|
|
|
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
|
|
|
|
moveToOutput "share/doc" "$devdoc"
|
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Denable_valadoc=true"
|
2022-10-21 18:38:19 +00:00
|
|
|
"-Denable_gtk3=false"
|
|
|
|
"-Denable_gflow=false"
|
2022-05-18 14:49:53 +00:00
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
postPatch = ''
|
|
|
|
rm -r libgflow
|
|
|
|
'';
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Flow graph widget for GTK 3";
|
|
|
|
homepage = "https://notabug.org/grindhold/libgtkflow";
|
|
|
|
maintainers = with maintainers; [ grindhold ];
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|