2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv, fetchurl, unzip, puredata }:
|
2015-03-16 14:39:52 +00:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2015-03-16 14:39:52 +00:00
|
|
|
name = "helmholtz";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://www.katjaas.nl/helmholtz/helmholtz~.zip";
|
2015-03-16 14:39:52 +00:00
|
|
|
name = "helmholtz.zip";
|
2015-09-01 12:17:35 +01:00
|
|
|
curlOpts = "--user-agent ''";
|
2015-03-16 14:39:52 +00:00
|
|
|
sha256 = "0h1fj7lmvq9j6rmw33rb8k0byxb898bi2xhcwkqalb84avhywgvs";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip puredata ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
unzip $src
|
|
|
|
mv helmholtz~/src/helmholtz\~.cpp .
|
|
|
|
mv helmholtz~/src/Helmholtz.cpp .
|
|
|
|
mv helmholtz~/src/include/ .
|
|
|
|
mv helmholtz~/src/Makefile .
|
|
|
|
rm -rf helmholtz~/src/
|
|
|
|
rm helmholtz~/helmholtz~.pd_darwin
|
2018-03-25 18:28:22 +01:00
|
|
|
rm helmholtz~/helmholtz~.pd_linux
|
2015-03-16 14:39:52 +00:00
|
|
|
rm helmholtz~/helmholtz~.dll
|
|
|
|
rm -rf __MACOSX
|
|
|
|
'';
|
|
|
|
|
|
|
|
patchPhase = ''
|
2018-03-25 18:28:22 +01:00
|
|
|
mkdir -p $out/helmholtz~
|
2015-03-16 14:39:52 +00:00
|
|
|
sed -i "s@current: pd_darwin@current: pd_linux@g" Makefile
|
|
|
|
sed -i "s@-Wl@@g" Makefile
|
2018-03-25 18:28:22 +01:00
|
|
|
sed -i "s@\$(NAME).pd_linux \.\./\$(NAME).pd_linux@helmholtz~.pd_linux $out/helmholtz~/@g" Makefile
|
2015-03-16 14:39:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp -r helmholtz~/ $out/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2015-03-16 18:34:36 +00:00
|
|
|
description = "Time domain pitch tracker for Pure Data";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.katjaas.nl/helmholtz/helmholtz.html";
|
2021-01-15 13:21:58 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.magnetophon ];
|
|
|
|
platforms = lib.platforms.linux;
|
2015-03-16 14:39:52 +00:00
|
|
|
};
|
|
|
|
}
|