Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 faust2jaqt, 6 faust2lv2, 7}: 8stdenv.mkDerivation rec { 9 pname = "CharacterCompressor"; 10 version = "0.3.3"; 11 12 src = fetchFromGitHub { 13 owner = "magnetophon"; 14 repo = "CharacterCompressor"; 15 rev = "V${version}"; 16 sha256 = "1h0bhjhx023476gbijq842b6f8z71zcyn4c9mddwyb18w9cdamp5"; 17 }; 18 19 buildInputs = [ 20 faust2jaqt 21 faust2lv2 22 ]; 23 24 dontWrapQtApps = true; 25 26 buildPhase = '' 27 faust2jaqt -vec -time -t 99999 CharacterCompressor.dsp 28 faust2jaqt -vec -time -t 99999 CharacterCompressorMono.dsp 29 faust2lv2 -vec -time -gui -t 99999 CharacterCompressor.dsp 30 faust2lv2 -vec -time -gui -t 99999 CharacterCompressorMono.dsp 31 ''; 32 33 installPhase = '' 34 mkdir -p $out/bin 35 for f in $(find . -executable -type f); do 36 cp $f $out/bin/ 37 done 38 mkdir -p $out/lib/lv2 39 cp -r CharacterCompressor.lv2/ $out/lib/lv2 40 cp -r CharacterCompressorMono.lv2/ $out/lib/lv2 41 ''; 42 43 meta = { 44 description = "Compressor with character. For jack and lv2"; 45 homepage = "https://github.com/magnetophon/CharacterCompressor"; 46 license = lib.licenses.gpl3; 47 maintainers = [ lib.maintainers.magnetophon ]; 48 }; 49}