about summary refs log tree commit diff
path: root/pkgs/applications/audio/open-music-kontrollers/generic.nix
blob: 4c4211e49f0aef3dde32b3c04ee403706e1ee7cb (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
{ stdenv, lib, fetchurl, pkg-config, meson, ninja, lv2, sord, libX11, libXext, glew, lv2lint
, pname, version, sha256, description
, url ? "https://git.open-music-kontrollers.ch/lv2/${pname}.lv2/snapshot/${pname}.lv2-${version}.tar.xz"
, additionalBuildInputs ? []
, postPatch ? ""
, ...
}:

stdenv.mkDerivation {
  inherit pname;

  inherit version;

  inherit postPatch;

  src = fetchurl {
    url = url;
    sha256 = sha256;
  };
  nativeBuildInputs = [ pkg-config meson ninja ];
  buildInputs = [
    lv2
    sord
    libX11
    libXext
    glew
    lv2lint
  ] ++ additionalBuildInputs;

  meta = with lib; {
    broken = stdenv.hostPlatform.isDarwin;
    description = description;
    homepage = "https://open-music-kontrollers.ch/lv2/${pname}:";
    license = licenses.artistic2;
    maintainers = [ maintainers.magnetophon ];
    platforms = platforms.all;
  };
}