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 = "pluginUtils"; 10 version = "1.1"; 11 12 src = fetchFromGitHub { 13 owner = "magnetophon"; 14 repo = "pluginUtils"; 15 rev = "V${version}"; 16 sha256 = "1hnr5sp7k6ypf4ks61lnyqx44dkv35yllf3a3xcbrw7yqzagwr1c"; 17 }; 18 19 buildInputs = [ 20 faust2jaqt 21 faust2lv2 22 ]; 23 24 dontWrapQtApps = true; 25 26 buildPhase = '' 27 for f in *.dsp 28 do 29 echo "Building jack standalone for $f" 30 faust2jaqt -vec -time -t 99999 "$f" 31 echo "Building lv2 for $f" 32 faust2lv2 -vec -time -gui -t 99999 "$f" 33 done 34 ''; 35 36 installPhase = '' 37 rm -f *.dsp 38 rm -f *.lib 39 mkdir -p $out/lib/lv2 40 mv *.lv2/ $out/lib/lv2 41 mkdir -p $out/bin 42 for f in $(find . -executable -type f); do 43 cp $f $out/bin/ 44 done 45 ''; 46 47 meta = { 48 description = "Some simple utility lv2 plugins"; 49 homepage = "https://github.com/magnetophon/pluginUtils"; 50 license = lib.licenses.gpl3; 51 maintainers = [ lib.maintainers.magnetophon ]; 52 }; 53}