mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
34 lines
965 B
Nix
34 lines
965 B
Nix
{ stdenv, fetchFromGitHub, faust2jaqt, faust2lv2 }:
|
|
stdenv.mkDerivation rec {
|
|
name = "MBdistortion-${version}";
|
|
version = "1.1.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "magnetophon";
|
|
repo = "MBdistortion";
|
|
rev = "V${version}";
|
|
sha256 = "0mdzaqmxzgspfgx9w1hdip18y17hwpdcgjyq1rrfm843vkascwip";
|
|
};
|
|
|
|
buildInputs = [ faust2jaqt faust2lv2 ];
|
|
|
|
buildPhase = ''
|
|
faust2jaqt -time -vec -t 99999 MBdistortion.dsp
|
|
sed -i "s|\[ *scale *: *log *\]||g ; s|\btgroup\b|hgroup|g" "MBdistortion.dsp"
|
|
faust2lv2 -time -vec -gui -t 99999 MBdistortion.dsp
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp MBdistortion $out/bin/
|
|
mkdir -p $out/lib/lv2
|
|
cp -r MBdistortion.lv2/ $out/lib/lv2
|
|
'';
|
|
|
|
meta = {
|
|
description = "Mid-side multiband distortion for jack and lv2";
|
|
homepage = https://github.com/magnetophon/MBdistortion;
|
|
license = stdenv.lib.licenses.gpl2;
|
|
maintainers = [ stdenv.lib.maintainers.magnetophon ];
|
|
};
|
|
}
|