nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitLab,
5 fetchpatch2,
6 lv2,
7 lv2lint,
8 pkg-config,
9 meson,
10 ninja,
11}:
12
13stdenv.mkDerivation (finalAttrs: {
14 pname = "fomp";
15 version = "1.2.4";
16
17 src = fetchFromGitLab {
18 owner = "drobilla";
19 repo = "fomp";
20 tag = "v${finalAttrs.version}";
21 hash = "sha256-8rkAV+RJS9vQV+9+swclAP0QBjBDT2tKeLWHxwpUrlk=";
22 };
23
24 patches = [
25 (fetchpatch2 {
26 url = "https://gitlab.com/drobilla/fomp/-/commit/f8e4e1e0b1abe3afd2ea17b13795bbe871fccece.patch";
27 hash = "sha256-uJpUwTEBOp0Zo7zKT9jekhtkg9okUvGTavLIQmNKutU=";
28 })
29 ];
30
31 nativeBuildInputs = [
32 pkg-config
33 meson
34 ninja
35 lv2lint
36 ];
37
38 buildInputs = [
39 lv2
40 ];
41
42 strictDeps = true;
43
44 meta = {
45 homepage = "https://drobilla.net/software/fomp.html";
46 description = "LV2 port of the MCP, VCO, FIL, and WAH plugins by Fons Adriaensen";
47 license = lib.licenses.gpl2Plus;
48 maintainers = [ lib.maintainers.magnetophon ];
49 platforms = lib.platforms.linux;
50 };
51})