2024-01-02 11:29:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, faust2jack, faust2lv2, helmholtz, mrpeach, puredata-with-plugins, jack-example-tools }:
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "VoiceOfFaust";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "1.1.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "magnetophon";
|
|
|
|
repo = "VoiceOfFaust";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-vB8+ymvNuuovFXwOJ3BTIj5mGzCGa1+yhYs4nWMYIxU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
plugins = [ helmholtz mrpeach ];
|
|
|
|
|
|
|
|
pitchTracker = puredata-with-plugins plugins;
|
|
|
|
|
|
|
|
buildInputs = [ faust2jack faust2lv2 ];
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
enableParallelBuilding = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i "s@pd -nodac@${pitchTracker}/bin/pd -nodac@g" launchers/synthWrapper
|
2024-01-02 11:29:13 +00:00
|
|
|
sed -i "s@jack_connect@${jack-example-tools}/bin/jack_connect@g" launchers/synthWrapper
|
|
|
|
sed -i "s@../PureData/OscSendVoc.pd@$out/bin/PureData/OscSendVoc.pd@g" launchers/pitchTracker
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Turn your voice into a synthesizer";
|
|
|
|
homepage = "https://github.com/magnetophon/VoiceOfFaust";
|
2021-01-17 00:15:33 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = [ lib.maintainers.magnetophon ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|