1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 faust2jaqt,
6 faust2lv2,
7}:
8stdenv.mkDerivation rec {
9 pname = "faustCompressors";
10 version = "1.2";
11
12 src = fetchFromGitHub {
13 owner = "magnetophon";
14 repo = "faustCompressors";
15 rev = "v${version}";
16 sha256 = "144f6g17q4m50kxzdncsfzdyycdfprnpwdaxcwgxj4jky1xsha1d";
17 };
18
19 buildInputs = [
20 faust2jaqt
21 faust2lv2
22 ];
23
24 dontWrapQtApps = true;
25
26 buildPhase = ''
27 echo "hack out autoComp.dsp due to https://github.com/grame-cncm/faust/407/issues "
28 rm autoComp.dsp
29 for f in *.dsp;
30 do
31 echo "compiling standalone from" $f
32 faust2jaqt -time -double -t 99999 $f
33 done
34
35 for f in *.dsp;
36 do
37 echo "Compiling plugin from" $f
38 faust2lv2 -time -double -gui -t 99999 $f
39 done
40 '';
41
42 installPhase = ''
43 mkdir -p $out/lib/lv2
44 mv *.lv2/ $out/lib/lv2
45 mkdir -p $out/bin
46 rm newlib.sh
47 for f in $(find . -executable -type f); do
48 cp $f $out/bin/
49 done
50 '';
51
52 meta = {
53 description = "Collection of bread and butter compressors";
54 homepage = "https://github.com/magnetophon/faustCompressors";
55 license = lib.licenses.gpl3;
56 maintainers = [ lib.maintainers.magnetophon ];
57 };
58}