2016-11-07 13:06:35 +00:00
|
|
|
{ stdenv, fetchFromGitHub, faust2jaqt, faust2lv2 }:
|
2016-05-06 11:56:40 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-11-07 13:06:35 +00:00
|
|
|
name = "faustCompressors-v${version}";
|
2017-06-14 23:43:38 +00:00
|
|
|
version = "1.2";
|
2016-05-06 11:56:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magnetophon";
|
|
|
|
repo = "faustCompressors";
|
|
|
|
rev = "v${version}";
|
2017-06-14 23:43:38 +00:00
|
|
|
sha256 = "144f6g17q4m50kxzdncsfzdyycdfprnpwdaxcwgxj4jky1xsha1d";
|
2016-05-06 11:56:40 +00:00
|
|
|
};
|
|
|
|
|
2016-11-07 13:06:35 +00:00
|
|
|
buildInputs = [ faust2jaqt faust2lv2 ];
|
2016-05-06 11:56:40 +00:00
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
for f in *.dsp;
|
|
|
|
do
|
2017-06-14 23:43:38 +00:00
|
|
|
echo "compiling standalone from" $f
|
2016-11-07 13:06:35 +00:00
|
|
|
faust2jaqt -time -double -t 99999 $f
|
|
|
|
done
|
|
|
|
|
|
|
|
for f in *.dsp;
|
|
|
|
do
|
2018-01-21 22:27:45 +00:00
|
|
|
echo "Compiling plugin from" $f
|
2016-11-07 13:06:35 +00:00
|
|
|
faust2lv2 -time -double -gui -t 99999 $f
|
2016-05-06 11:56:40 +00:00
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib/lv2
|
|
|
|
mv *.lv2/ $out/lib/lv2
|
|
|
|
mkdir -p $out/bin
|
2017-06-14 23:43:38 +00:00
|
|
|
rm newlib.sh
|
2016-05-06 11:56:40 +00:00
|
|
|
for f in $(find . -executable -type f);
|
|
|
|
do
|
|
|
|
cp $f $out/bin/
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A collection of bread and butter compressors";
|
|
|
|
homepage = https://github.com/magnetophon/faustCompressors;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.magnetophon ];
|
|
|
|
};
|
|
|
|
}
|