at 24.05-pre 49 lines 1.1 kB view raw
1{stdenv, lib, vala, meson, ninja, pkg-config, fetchFromGitea, gobject-introspection, glib, gtk3}: 2 3stdenv.mkDerivation rec { 4 pname = "libgflow"; 5 version = "1.0.4"; 6 7 outputs = [ "out" "dev" "devdoc" ]; 8 outputBin = "devdoc"; # demo app 9 10 src = fetchFromGitea { 11 domain = "notabug.org"; 12 owner = "grindhold"; 13 repo = "libgtkflow"; 14 rev = "gflow_${version}"; 15 hash = "sha256-JoVq7U5JQ3pRxptR7igWFw7lcBTsgr3aVXxayLqhyFo="; 16 }; 17 18 nativeBuildInputs = [ 19 vala 20 meson 21 ninja 22 pkg-config 23 gobject-introspection 24 ]; 25 26 buildInputs = [ 27 gtk3 28 glib 29 ]; 30 31 postFixup = '' 32 # Cannot be in postInstall, otherwise _multioutDocs hook in preFixup will move right back. 33 moveToOutput "share/doc" "$devdoc" 34 ''; 35 36 mesonFlags = [ 37 "-Denable_valadoc=true" 38 "-Denable_gtk3=false" 39 "-Denable_gtk4=false" 40 ]; 41 42 meta = with lib; { 43 description = "Flow graph widget for GTK 3"; 44 homepage = "https://notabug.org/grindhold/libgtkflow"; 45 maintainers = with maintainers; [ grindhold ]; 46 license = licenses.lgpl3Plus; 47 platforms = platforms.unix; 48 }; 49}