2016-05-06 12:56:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub, faust2jaqt, faust2lv2gui }:
|
2015-05-30 21:17:03 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "CharacterCompressor-${version}";
|
2016-07-25 20:52:06 +01:00
|
|
|
version = "0.3.1";
|
2015-05-30 21:17:03 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magnetophon";
|
|
|
|
repo = "CharacterCompressor";
|
2016-07-25 20:52:06 +01:00
|
|
|
rev = "V${version}";
|
|
|
|
sha256 = "0ci27v5k10prsmcd0g6q5vhr31mz8hsmrsdk436vfbcv3s108rcc";
|
2015-05-30 21:17:03 +01:00
|
|
|
};
|
|
|
|
|
2016-05-06 12:56:40 +01:00
|
|
|
buildInputs = [ faust2jaqt faust2lv2gui ];
|
2015-05-30 21:17:03 +01:00
|
|
|
|
|
|
|
buildPhase = ''
|
2016-07-25 20:52:06 +01:00
|
|
|
faust2jaqt -vec -time -t 99999 CharacterCompressor.dsp
|
|
|
|
faust2lv2 -vec -time -gui -t 99999 CharacterCompressor.dsp
|
|
|
|
faust2jaqt -vec -time -t 99999 CharacterCompressorMono.dsp
|
|
|
|
faust2lv2 -vec -time -gui -t 99999 CharacterCompressorMono.dsp
|
2015-05-30 21:17:03 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp CharacterCompressor $out/bin/
|
2016-07-25 20:52:06 +01:00
|
|
|
cp CharacterCompressorMono $out/bin/
|
2015-05-30 21:17:03 +01:00
|
|
|
mkdir -p $out/lib/lv2
|
|
|
|
cp -r CharacterCompressor.lv2/ $out/lib/lv2
|
2016-07-25 20:52:06 +01:00
|
|
|
cp -r CharacterCompressorMono.lv2/ $out/lib/lv2
|
2015-05-30 21:17:03 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A compressor with character. For jack and lv2";
|
|
|
|
homepage = https://github.com/magnetophon/CharacterCompressor;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.magnetophon ];
|
|
|
|
};
|
|
|
|
}
|