1 { lib, stdenv, fetchurl, unzip, puredata }:
7 url = "https://www.katjaas.nl/helmholtz/helmholtz~.zip";
8 name = "helmholtz.zip";
9 curlOpts = "--user-agent ''";
10 sha256 = "0h1fj7lmvq9j6rmw33rb8k0byxb898bi2xhcwkqalb84avhywgvs";
13 nativeBuildInputs = [ unzip ];
14 buildInputs = [ puredata ];
18 mv helmholtz~/src/helmholtz\~.cpp .
19 mv helmholtz~/src/Helmholtz.cpp .
20 mv helmholtz~/src/include/ .
21 mv helmholtz~/src/Makefile .
22 rm -rf helmholtz~/src/
23 rm helmholtz~/helmholtz~.pd_darwin
24 rm helmholtz~/helmholtz~.pd_linux
25 rm helmholtz~/helmholtz~.dll
30 mkdir -p $out/helmholtz~
31 sed -i "s@current: pd_darwin@current: pd_linux@g" Makefile
32 sed -i "s@-Wl@@g" Makefile
33 sed -i "s@\$(NAME).pd_linux \.\./\$(NAME).pd_linux@helmholtz~.pd_linux $out/helmholtz~/@g" Makefile
37 cp -r helmholtz~/ $out/
41 broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
42 description = "Time domain pitch tracker for Pure Data";
43 homepage = "http://www.katjaas.nl/helmholtz/helmholtz.html";
44 license = lib.licenses.bsd3;
45 maintainers = [ lib.maintainers.magnetophon ];
46 platforms = lib.platforms.linux;