about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/audio/lv2/default.nix
blob: d0f85c95a077fad17aeb888777e715b3b239c203 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{ stdenv
, lib
, fetchurl
, meson
, ninja

, pipewire
, gitUpdater
}:

stdenv.mkDerivation rec {
  pname = "lv2";
  version = "1.18.10";

  outputs = [ "out" "dev" ];

  src = fetchurl {
    url = "https://lv2plug.in/spec/${pname}-${version}.tar.xz";
    hash = "sha256-eMUbzyG1Tli7Yymsy7Ta4Dsu15tSD5oB5zS9neUwlT8=";
  };

  strictDeps = true;

  nativeBuildInputs = [
    meson
    ninja
  ];

  buildInputs = [ ];

  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 [
    "-Dlv2dir=${placeholder "out"}/lib/lv2"
  ];

  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; {
    homepage = "https://lv2plug.in";
    description = "A plugin standard for audio systems";
    license = licenses.mit;
    maintainers = with maintainers; [ goibhniu ];
    platforms = platforms.unix;
  };
}