depot/third_party/nixpkgs/pkgs/development/libraries/audio/lilv/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

57 lines
1.1 KiB
Nix

{ lib
, stdenv
, fetchurl
, lv2
, meson
, ninja
, pkg-config
, python3
, libsndfile
, serd
, sord
, sratom
, gitUpdater
# test derivations
, pipewire
}:
stdenv.mkDerivation rec {
pname = "lilv";
version = "0.24.22";
outputs = [ "out" "dev" "man" ];
src = fetchurl {
url = "https://download.drobilla.net/${pname}-${version}.tar.xz";
hash = "sha256-dvlJ0OWfyDNjQJtexeFcEEb7fdZYnTwbkgzsH9Kfn/M=";
};
nativeBuildInputs = [ meson ninja pkg-config python3 ];
buildInputs = [ libsndfile serd sord sratom ];
propagatedBuildInputs = [ lv2 ];
mesonFlags = [
"-Ddocs=disabled"
# Tests require building a shared library.
(lib.mesonEnable "tests" (!stdenv.hostPlatform.isStatic))
];
passthru = {
tests = {
inherit pipewire;
};
updateScript = gitUpdater {
url = "https://gitlab.com/lv2/lilv.git";
rev-prefix = "v";
};
};
meta = with lib; {
homepage = "http://drobilla.net/software/lilv";
description = "A C library to make the use of LV2 plugins";
license = licenses.mit;
maintainers = [ maintainers.goibhniu ];
platforms = platforms.unix;
};
}