1{ stdenv, fetchFromGitHub, faust2jack, faust2lv2 }:
2stdenv.mkDerivation rec {
3 name = "CompBus-${version}";
4 version = "1.1.02";
5
6 src = fetchFromGitHub {
7 owner = "magnetophon";
8 repo = "CompBus";
9 rev = "v${version}";
10 sha256 = "025vi60caxk3j2vxxrgbc59xlyr88vgn7k3127s271zvpyy7apwh";
11 };
12
13 buildInputs = [ faust2jack faust2lv2 ];
14
15 buildPhase = ''
16 for f in *.dsp;
17 do
18 faust2jack -t 99999 $f
19 faust2lv2 -t 99999 $f
20 done
21 '';
22
23 installPhase = ''
24 mkdir -p $out/lib/lv2
25 mv *.lv2/ $out/lib/lv2
26 mkdir -p $out/bin
27 for f in $(find . -executable -type f);
28 do
29 cp $f $out/bin/
30 done
31 '';
32
33 meta = {
34 description = "A group of compressors mixed into a bus, sidechained from that mix bus. For jack and lv2";
35 homepage = https://github.com/magnetophon/CompBus;
36 license = stdenv.lib.licenses.gpl3;
37 maintainers = [ stdenv.lib.maintainers.magnetophon ];
38 };
39}