summary refs log tree commit diff
path: root/pkgs/applications/audio/CompBus/default.nix
blob: 497d1ef5243fffcbde1a906a42170128410a67a6 (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
{ stdenv, fetchFromGitHub, faust2jack, faust2lv2 }:
stdenv.mkDerivation rec {
  name = "CompBus-${version}";
  version = "1.1.02";

  src = fetchFromGitHub {
    owner = "magnetophon";
    repo = "CompBus";
    rev = "v${version}";
    sha256 = "025vi60caxk3j2vxxrgbc59xlyr88vgn7k3127s271zvpyy7apwh";
  };

  buildInputs = [ faust2jack faust2lv2 ];

  buildPhase = ''
    for f in *.dsp;
    do
      faust2jack -t 99999 $f
      faust2lv2 -t 99999 $f
    done
  '';

  installPhase = ''
    mkdir -p $out/lib/lv2
    mv *.lv2/ $out/lib/lv2
    mkdir -p $out/bin
    for f in $(find . -executable -type f);
    do
      cp $f $out/bin/
    done
  '';

  meta = {
    description = "A group of compressors mixed into a bus, sidechained from that mix bus. For jack and lv2";
    homepage = https://github.com/magnetophon/CompBus;
    license = stdenv.lib.licenses.gpl3;
    maintainers = [ stdenv.lib.maintainers.magnetophon ];
  };
}