about summary refs log tree commit diff
path: root/pkgs/applications/audio/ingen/default.nix
blob: 81bd40c8207a59e58aea6bbdb8c3449846369158 (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
67
68
69
70
71
72
73
74
75
{
  lib,
  stdenv,
  fetchFromGitLab,
  portaudio,
  boost,
  ganv,
  gtkmm2,
  libjack2,
  lilv,
  pkg-config,
  python3,
  raul,
  sord,
  sratom,
  suil,
  meson,
  ninja,
}:

stdenv.mkDerivation {
  pname = "ingen";
  version = "0-unstable-2024-07-13";

  src = fetchFromGitLab {
    owner = "drobilla";
    repo = "ingen";
    rev = "bbdab98ed282291b6e29a944359c360c9cca127e";
    hash = "sha256-BllWeVmEkHQaZD9Ba7H0JMRlxVROJ8pkIiC2VXYiweA=";
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
    python3
    python3.pkgs.wrapPython
  ];

  buildInputs = [
    boost
    ganv
    gtkmm2
    libjack2
    lilv
    portaudio
    raul
    sord
    sratom
    suil
  ];

  strictDeps = true;

  # lv2specgen.py is not packaged in lv2 but required to build docs
  mesonFlags = [ "-Ddocs=disabled" ];

  pythonPath = [
    python3
    python3.pkgs.rdflib
  ];

  postInstall = ''
    wrapPythonProgramsIn "$out/bin" "$out $pythonPath"
    wrapProgram "$out/bin/ingen" --set INGEN_UI_PATH "$out/share/ingen/ingen_gui.ui"
  '';

  meta = {
    description = "Modular audio processing system using JACK and LV2 or LADSPA plugins";
    homepage = "http://drobilla.net/software/ingen";
    license = lib.licenses.agpl3Plus;
    maintainers = with lib.maintainers; [ t4ccer ];
    platforms = lib.platforms.linux;
  };
}