nixpkgs-suyu/pkgs/development/libraries/libgflow/default.nix

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

50 lines
1.1 KiB
Nix
Raw Normal View History

2022-05-02 11:12:53 +02:00
{stdenv, lib, vala, meson, ninja, pkg-config, fetchFromGitea, gobject-introspection, glib, gtk3}:
stdenv.mkDerivation rec {
pname = "libgflow";
version = "1.0.4";
outputs = [ "out" "dev" "devdoc" ];
outputBin = "devdoc"; # demo app
2022-05-02 11:12:53 +02:00
src = fetchFromGitea {
domain = "notabug.org";
owner = "grindhold";
repo = "libgtkflow";
rev = "gflow_${version}";
hash = "sha256-JoVq7U5JQ3pRxptR7igWFw7lcBTsgr3aVXxayLqhyFo=";
2022-05-02 11:12:53 +02:00
};
nativeBuildInputs = [
vala
meson
ninja
pkg-config
gobject-introspection
];
buildInputs = [
gtk3
glib
];
postFixup = ''
# Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back.
moveToOutput "share/doc" "$devdoc"
'';
2022-05-02 11:12:53 +02:00
mesonFlags = [
"-Denable_valadoc=true"
"-Denable_gtk3=false"
"-Denable_gtk4=false"
2022-05-02 11:12:53 +02: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;
};
}