diff options
author | Bart Brouns <bart@magnetophon.nl> | 2016-11-07 14:06:35 +0100 |
---|---|---|
committer | Bart Brouns <bart@magnetophon.nl> | 2016-11-07 14:06:35 +0100 |
commit | f63c179b0b0eb08cd06adf5deb973370da80314c (patch) | |
tree | f76191e818c2bdc042b81e63829e4b8756288f9a /pkgs/applications/audio/magnetophonDSP/CharacterCompressor | |
parent | 77afa8e6b7287abbf961fa03f73e9bdfe37bb542 (diff) |
magnetophonDSP: update to new faust libraries
Diffstat (limited to 'pkgs/applications/audio/magnetophonDSP/CharacterCompressor')
-rw-r--r-- | pkgs/applications/audio/magnetophonDSP/CharacterCompressor/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/applications/audio/magnetophonDSP/CharacterCompressor/default.nix b/pkgs/applications/audio/magnetophonDSP/CharacterCompressor/default.nix new file mode 100644 index 0000000000000..206754a519558 --- /dev/null +++ b/pkgs/applications/audio/magnetophonDSP/CharacterCompressor/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchFromGitHub, faust2jaqt, faust2lv2 }: +stdenv.mkDerivation rec { + name = "CharacterCompressor-${version}"; + version = "0.3.3"; + + src = fetchFromGitHub { + owner = "magnetophon"; + repo = "CharacterCompressor"; + rev = "V${version}"; + sha256 = "1h0bhjhx023476gbijq842b6f8z71zcyn4c9mddwyb18w9cdamp5"; + }; + + buildInputs = [ faust2jaqt faust2lv2 ]; + + buildPhase = '' + faust2jaqt -vec -time -t 99999 CharacterCompressor.dsp + faust2jaqt -vec -time -t 99999 CharacterCompressorMono.dsp + sed -i "s|\[ *scale *: *log *\]||g ; s|\btgroup\b|hgroup|g" "lib/CharacterCompressor.lib" + faust2lv2 -vec -time -gui -t 99999 CharacterCompressor.dsp + faust2lv2 -vec -time -gui -t 99999 CharacterCompressorMono.dsp + ''; + + installPhase = '' + mkdir -p $out/bin + cp CharacterCompressor $out/bin/ + cp CharacterCompressorMono $out/bin/ + mkdir -p $out/lib/lv2 + cp -r CharacterCompressor.lv2/ $out/lib/lv2 + cp -r CharacterCompressorMono.lv2/ $out/lib/lv2 + ''; + + 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 ]; + }; +} |