mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
6f2fbf5f0b
This fixes hopefully all remaining missing lib inputs, likely introduced as a regression by our recent treewide switch from stdenv.lib to lib. These instances are all I could find using nix-instantiate --parse using the following command: find "$NIXPKGS" -name '*.nix' \ -and ! -path "$NIXPKGS/pkgs/development/interpreters/python/cpython/docs/template.nix" \ -and ! -path '$NIXPKGS/.git/**' \ -print0 | xargs -0 nix-instantiate --parse >/dev/null
57 lines
1.4 KiB
Nix
57 lines
1.4 KiB
Nix
{ lib, stdenv, fetchFromGitHub, faust2jack, faust2lv2, helmholtz, mrpeach, puredata-with-plugins }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "VoiceOfFaust";
|
|
version = "1.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "magnetophon";
|
|
repo = "VoiceOfFaust";
|
|
rev = "V${version}";
|
|
sha256 = "0la9b806qwrlsxgbir7n1db8v3w24wmd6k43p6qpr1fjjpkhrrgw";
|
|
};
|
|
|
|
plugins = [ helmholtz mrpeach ];
|
|
|
|
pitchTracker = puredata-with-plugins plugins;
|
|
|
|
buildInputs = [ faust2jack faust2lv2 ];
|
|
|
|
runtimeInputs = [ pitchTracker ];
|
|
|
|
patchPhase = ''
|
|
sed -i "s@pd -nodac@${pitchTracker}/bin/pd -nodac@g" launchers/synthWrapper
|
|
sed -i "s@../PureData/OscSendVoc.pd@$out/PureData/OscSendVoc.pd@g" launchers/pitchTracker
|
|
'';
|
|
|
|
buildPhase = ''
|
|
sh install.sh
|
|
# so it doesn;t end up in /bin/ :
|
|
rm -f install.sh
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
|
|
for file in ./*; do
|
|
if test -x "$file" && test -f "$file"; then
|
|
cp "$file" "$out/bin"
|
|
fi
|
|
done
|
|
|
|
cp launchers/* $out/bin/
|
|
mkdir $out/PureData/
|
|
# cp PureData/OscSendVoc.pd $out/PureData/OscSendVoc.pd
|
|
cp PureData/* $out/PureData/
|
|
|
|
mkdir -p $out/lib/lv2
|
|
cp -r *.lv2/ $out/lib/lv2
|
|
'';
|
|
|
|
meta = {
|
|
description = "Turn your voice into a synthesizer";
|
|
homepage = "https://github.com/magnetophon/VoiceOfFaust";
|
|
license = lib.licenses.gpl3;
|
|
maintainers = [ lib.maintainers.magnetophon ];
|
|
};
|
|
}
|