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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
{
stdenv,
lib,
fetchFromGitLab,
# build time
pkg-config,
meson,
ninja,
# runtime
lv2,
# options
withGtk2 ? false,
gtk2,
withGtk3 ? true,
gtk3,
withQt5 ? true,
qt5,
withX11 ? !stdenv.isDarwin,
}:
let
inherit (lib) mesonEnable;
in
stdenv.mkDerivation rec {
pname = "suil";
version = "0.10.20";
src = fetchFromGitLab {
owner = "lv2";
repo = "suil";
rev = "v${version}";
hash = "sha256-rP8tq+zmHrAZeuNttakPPfraFXNvnwqbhtt+LtTNV/k=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
mesonFlags = [
# docs require sphinxygen
(mesonEnable "docs" false)
(mesonEnable "gtk2" withGtk2)
(mesonEnable "gtk3" withGtk3)
(mesonEnable "qt5" withQt5)
(mesonEnable "x11" withX11)
];
buildInputs =
[ lv2 ]
++ lib.optionals withGtk2 [ gtk2 ]
++ lib.optionals withGtk3 [ gtk3 ]
++ lib.optionals withQt5 (
with qt5;
[
qtbase
qttools
]
++ lib.optionals withX11 [ qtx11extras ]
);
dontWrapQtApps = true;
strictDeps = true;
meta = with lib; {
homepage = "http://drobilla.net/software/suil";
description = "Lightweight C library for loading and wrapping LV2 plugin UIs";
license = licenses.mit;
maintainers = with maintainers; [ goibhniu ];
platforms = platforms.unix;
};
}
|