755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
41 lines
1.1 KiB
Nix
41 lines
1.1 KiB
Nix
{ lib, stdenv, fetchFromGitHub, faust2jaqt, faust2lv2 }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "CharacterCompressor";
|
|
version = "0.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "magnetophon";
|
|
repo = "CharacterCompressor";
|
|
rev = "V${version}";
|
|
sha256 = "1h0bhjhx023476gbijq842b6f8z71zcyn4c9mddwyb18w9cdamp5";
|
|
};
|
|
|
|
buildInputs = [ faust2jaqt faust2lv2 ];
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
buildPhase = ''
|
|
faust2jaqt -vec -time -t 99999 CharacterCompressor.dsp
|
|
faust2jaqt -vec -time -t 99999 CharacterCompressorMono.dsp
|
|
faust2lv2 -vec -time -gui -t 99999 CharacterCompressor.dsp
|
|
faust2lv2 -vec -time -gui -t 99999 CharacterCompressorMono.dsp
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
for f in $(find . -executable -type f); do
|
|
cp $f $out/bin/
|
|
done
|
|
mkdir -p $out/lib/lv2
|
|
cp -r CharacterCompressor.lv2/ $out/lib/lv2
|
|
cp -r CharacterCompressorMono.lv2/ $out/lib/lv2
|
|
'';
|
|
|
|
meta = {
|
|
description = "Compressor with character. For jack and lv2";
|
|
homepage = "https://github.com/magnetophon/CharacterCompressor";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = [ lib.maintainers.magnetophon ];
|
|
};
|
|
}
|