2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
2023-04-12 12:48:02 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
, pipewire
|
2023-04-12 12:48:02 +00:00
|
|
|
, gitUpdater
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lv2";
|
2023-04-12 12:48:02 +00:00
|
|
|
version = "1.18.10";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2023-04-12 12:48:02 +00:00
|
|
|
url = "https://lv2plug.in/spec/${pname}-${version}.tar.xz";
|
|
|
|
hash = "sha256-eMUbzyG1Tli7Yymsy7Ta4Dsu15tSD5oB5zS9neUwlT8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
nativeBuildInputs = [
|
2023-04-12 12:48:02 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
buildInputs = [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
mesonFlags = [
|
|
|
|
# install validators to $dev
|
2022-03-30 09:31:56 +00:00
|
|
|
"--bindir=${placeholder "dev"}/bin"
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
# These are just example plugins. They pull in outdated gtk-2
|
|
|
|
# dependency and many other things. Upstream would like to
|
|
|
|
# eventually move them of the project:
|
|
|
|
# https://gitlab.com/lv2/lv2/-/issues/57#note_1096060029
|
|
|
|
"-Dplugins=disabled"
|
|
|
|
# Pulls in spell checkers among other things.
|
|
|
|
"-Dtests=disabled"
|
|
|
|
# Avoid heavyweight python dependencies.
|
|
|
|
"-Ddocs=disabled"
|
2022-03-30 09:31:56 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2023-04-12 12:48:02 +00:00
|
|
|
"-Dlv2dir=${placeholder "out"}/lib/lv2"
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
passthru = {
|
|
|
|
tests = {
|
|
|
|
inherit pipewire;
|
|
|
|
};
|
|
|
|
updateScript = gitUpdater {
|
|
|
|
# No nicer place to find latest release.
|
|
|
|
url = "https://gitlab.com/lv2/lv2.git";
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-03 17:38:23 +00:00
|
|
|
homepage = "https://lv2plug.in";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A plugin standard for audio systems";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "lv2_validate";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-03-30 09:31:56 +00:00
|
|
|
maintainers = with maintainers; [ goibhniu ];
|
2020-08-20 17:08:02 +00:00
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|