2023-10-14 05:44:34 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, lv2
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, libsndfile
|
|
|
|
, serd
|
|
|
|
, sord
|
|
|
|
, sratom
|
|
|
|
, gitUpdater
|
2022-02-13 20:08:05 +01:00
|
|
|
|
|
|
|
# test derivations
|
|
|
|
, pipewire
|
|
|
|
}:
|
2012-07-05 23:29:45 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "lilv";
|
2024-01-24 12:50:50 +01:00
|
|
|
version = "0.24.24";
|
2012-07-05 23:29:45 +02:00
|
|
|
|
2023-10-14 05:44:34 +02:00
|
|
|
outputs = [ "out" "dev" "man" ];
|
2022-02-13 19:00:10 +01:00
|
|
|
|
2012-07-05 23:29:45 +02:00
|
|
|
src = fetchurl {
|
2023-10-14 05:44:34 +02:00
|
|
|
url = "https://download.drobilla.net/${pname}-${version}.tar.xz";
|
2024-01-24 12:50:50 +01:00
|
|
|
hash = "sha256-a7a+n4hQQXbQZC8S3oCbK54txVYhporbjH7bma76u08=";
|
2012-07-05 23:29:45 +02:00
|
|
|
};
|
|
|
|
|
2023-10-14 05:44:34 +02:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config python3 ];
|
|
|
|
buildInputs = [ libsndfile serd sord sratom ];
|
2020-03-23 03:02:29 +01:00
|
|
|
propagatedBuildInputs = [ lv2 ];
|
2012-07-05 23:29:45 +02:00
|
|
|
|
2023-12-21 16:55:11 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Ddocs=disabled"
|
|
|
|
# Tests require building a shared library.
|
|
|
|
(lib.mesonEnable "tests" (!stdenv.hostPlatform.isStatic))
|
|
|
|
];
|
2023-10-14 05:44:34 +02:00
|
|
|
|
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
inherit pipewire;
|
|
|
|
};
|
|
|
|
updateScript = gitUpdater {
|
|
|
|
url = "https://gitlab.com/lv2/lilv.git";
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
2022-02-13 20:08:05 +01:00
|
|
|
};
|
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://drobilla.net/software/lilv";
|
2012-07-05 23:29:45 +02:00
|
|
|
description = "A C library to make the use of LV2 plugins";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.goibhniu ];
|
2021-10-01 21:39:40 +02:00
|
|
|
platforms = platforms.unix;
|
2012-07-05 23:29:45 +02:00
|
|
|
};
|
|
|
|
}
|