summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/fo/fomp/package.nix
blob: 3b84bbf520ae53ebfb5b45079f4e459a2be4277b (plain)
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
{
  lib,
  stdenv,
  fetchFromGitLab,
  fetchpatch2,
  lv2,
  lv2lint,
  pkg-config,
  meson,
  ninja,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "fomp";
  version = "1.2.4";

  src = fetchFromGitLab {
    owner = "drobilla";
    repo = "fomp";
    tag = "v${finalAttrs.version}";
    hash = "sha256-8rkAV+RJS9vQV+9+swclAP0QBjBDT2tKeLWHxwpUrlk=";
  };

  patches = [
    (fetchpatch2 {
      url = "https://gitlab.com/drobilla/fomp/-/commit/f8e4e1e0b1abe3afd2ea17b13795bbe871fccece.patch";
      hash = "sha256-uJpUwTEBOp0Zo7zKT9jekhtkg9okUvGTavLIQmNKutU=";
    })
  ];

  nativeBuildInputs = [
    pkg-config
    meson
    ninja
    lv2lint
  ];

  buildInputs = [
    lv2
  ];

  strictDeps = true;

  meta = {
    homepage = "https://drobilla.net/software/fomp.html";
    description = "LV2 port of the MCP, VCO, FIL, and WAH plugins by Fons Adriaensen";
    license = lib.licenses.gpl2Plus;
    maintainers = [ lib.maintainers.magnetophon ];
    platforms = lib.platforms.linux;
  };
})