2022-03-30 09:31:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, libsndfile
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, wafHook
|
|
|
|
, pipewire
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "lv2";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "1.18.2";
|
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 {
|
|
|
|
url = "https://lv2plug.in/spec/${pname}-${version}.tar.bz2";
|
2021-03-09 03:18:52 +00:00
|
|
|
sha256 = "sha256-TokfvHRMBYVb6136gugisUkX3Wbpj4K4Iw29HHqy4F4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
wafHook
|
2022-04-27 09:35:20 +00:00
|
|
|
python3
|
2022-03-30 09:31:56 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libsndfile
|
|
|
|
python3
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
wafConfigureFlags = [
|
|
|
|
"--includedir=${placeholder "dev"}/include"
|
|
|
|
"--bindir=${placeholder "dev"}/bin"
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
"--lv2dir=${placeholder "out"}/lib/lv2"
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
dontAddWafCrossFlags = true;
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
inherit pipewire;
|
|
|
|
};
|
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";
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|