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 = "shelfMultiBand"; 10 version = "0.6.1"; 11 12 src = fetchFromGitHub { 13 owner = "magnetophon"; 14 repo = "shelfMultiBand"; 15 rev = "V${version}"; 16 sha256 = "1b1h4z5fs2xm7wvw11p9wnd0bxs3m88124f5phh0gwvpsdrd0im5"; 17 }; 18 19 buildInputs = [ 20 faust2jaqt 21 faust2lv2 22 ]; 23 24 dontWrapQtApps = true; 25 26 buildPhase = '' 27 faust2jaqt -vec -double -time -t 99999 shelfMultiBand.dsp 28 faust2jaqt -vec -double -time -t 99999 shelfMultiBandMono.dsp 29 faust2lv2 -vec -double -time -gui -t 99999 shelfMultiBandMono.dsp 30 faust2lv2 -vec -double -time -gui -t 99999 shelfMultiBand.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 shelfMultiBand.lv2/ $out/lib/lv2 40 cp -r shelfMultiBandMono.lv2/ $out/lib/lv2 41 ''; 42 43 meta = { 44 description = "Multiband compressor made from shelving filters"; 45 homepage = "https://github.com/magnetophon/shelfMultiBand"; 46 license = lib.licenses.gpl3; 47 maintainers = [ lib.maintainers.magnetophon ]; 48 }; 49}