diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/audio/lv2/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/audio/lv2/default.nix | 54 |
1 files changed, 34 insertions, 20 deletions
diff --git a/nixpkgs/pkgs/development/libraries/audio/lv2/default.nix b/nixpkgs/pkgs/development/libraries/audio/lv2/default.nix index 6371a52b4dff..d0f85c95a077 100644 --- a/nixpkgs/pkgs/development/libraries/audio/lv2/default.nix +++ b/nixpkgs/pkgs/development/libraries/audio/lv2/default.nix @@ -1,45 +1,59 @@ { stdenv , lib , fetchurl -, libsndfile -, pkg-config -, python3 -, wafHook +, meson +, ninja + , pipewire +, gitUpdater }: stdenv.mkDerivation rec { pname = "lv2"; - version = "1.18.2"; + version = "1.18.10"; outputs = [ "out" "dev" ]; src = fetchurl { - url = "https://lv2plug.in/spec/${pname}-${version}.tar.bz2"; - sha256 = "sha256-TokfvHRMBYVb6136gugisUkX3Wbpj4K4Iw29HHqy4F4="; + url = "https://lv2plug.in/spec/${pname}-${version}.tar.xz"; + hash = "sha256-eMUbzyG1Tli7Yymsy7Ta4Dsu15tSD5oB5zS9neUwlT8="; }; + strictDeps = true; + nativeBuildInputs = [ - pkg-config - wafHook - python3 + meson + ninja ]; - buildInputs = [ - libsndfile - python3 - ]; + buildInputs = [ ]; - wafConfigureFlags = [ - "--includedir=${placeholder "dev"}/include" + mesonFlags = [ + # install validators to $dev "--bindir=${placeholder "dev"}/bin" + + # 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" ] ++ lib.optionals stdenv.isDarwin [ - "--lv2dir=${placeholder "out"}/lib/lv2" + "-Dlv2dir=${placeholder "out"}/lib/lv2" ]; - dontAddWafCrossFlags = true; - passthru.tests = { - inherit pipewire; + passthru = { + tests = { + inherit pipewire; + }; + updateScript = gitUpdater { + # No nicer place to find latest release. + url = "https://gitlab.com/lv2/lv2.git"; + rev-prefix = "v"; + }; }; meta = with lib; { |