lol
1{ lib
2, stdenv
3, fetchurl
4, lv2
5, meson
6, ninja
7, pkg-config
8, python3
9, libsndfile
10, serd
11, sord
12, sratom
13, gitUpdater
14
15# test derivations
16, pipewire
17}:
18
19stdenv.mkDerivation rec {
20 pname = "lilv";
21 version = "0.24.20";
22
23 outputs = [ "out" "dev" "man" ];
24
25 src = fetchurl {
26 url = "https://download.drobilla.net/${pname}-${version}.tar.xz";
27 hash = "sha256-T7CCubiyhuqSu7cb3mt1Ykzsq23wzGOe51oqCWIS7rw=";
28 };
29
30 nativeBuildInputs = [ meson ninja pkg-config python3 ];
31 buildInputs = [ libsndfile serd sord sratom ];
32 propagatedBuildInputs = [ lv2 ];
33
34 mesonFlags = [ "-Ddocs=disabled" ];
35
36 passthru = {
37 tests = {
38 inherit pipewire;
39 };
40 updateScript = gitUpdater {
41 url = "https://gitlab.com/lv2/lilv.git";
42 rev-prefix = "v";
43 };
44 };
45
46 meta = with lib; {
47 homepage = "http://drobilla.net/software/lilv";
48 description = "A C library to make the use of LV2 plugins";
49 license = licenses.mit;
50 maintainers = [ maintainers.goibhniu ];
51 platforms = platforms.unix;
52 };
53}