about summary refs log tree commit diff
path: root/pkgs/development/libraries/ganv/default.nix
blob: e171ee03250b93abcf55c60d87dcd74d327dc6b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
  lib,
  stdenv,
  fetchFromGitLab,
  graphviz,
  gtk2,
  gtkmm2,
  meson,
  ninja,
  cmake,
  pkg-config,
}:

stdenv.mkDerivation {
  pname = "ganv";
  version = "1.8.2-unstable-2024-07-04";

  src = fetchFromGitLab {
    owner = "drobilla";
    repo = "ganv";
    rev = "4d2e04dbcabd0b5d715ea7eeeb909f4088055763";
    hash = "sha256-DzODtYI8uwP65ck8Q90QEnjQbvPobepeQVgNZZjF+jk=";
  };

  nativeBuildInputs = [
    pkg-config
    meson
    ninja
    cmake
  ];

  buildInputs = [
    gtk2
    gtkmm2
    graphviz
  ];

  strictDeps = true;

  # libintl detection does not work even if provided
  mesonAutoFeatures = "disabled";

  meta = {
    description = "Interactive Gtk canvas widget for graph-based interfaces";
    mainProgram = "ganv_bench";
    homepage = "http://drobilla.net";
    license = lib.licenses.gpl3;
    maintainers = with lib.maintainers; [
      goibhniu
      t4ccer
    ];
    platforms = lib.platforms.linux;
  };
}