1 { lib, stdenv, fetchFromGitHub, fftw, installShellFiles }:
4 pname = "sonic-unstable";
5 version = "2020-12-27";
7 src = fetchFromGitHub {
10 rev = "4a052d9774387a9d9b4af627f6a74e1694419960";
11 sha256 = "0ah54nizb6iwcx277w104wsfnx05vrp4sh56d2pfxhf8xghg54m6";
14 makeFlags = [ "PREFIX=${placeholder "out"}" "CC=${stdenv.cc.targetPrefix}cc" ];
16 nativeBuildInputs = [ installShellFiles ];
18 buildInputs = [ fftw ];
21 installManPage sonic.1
22 '' + lib.optionalString stdenv.isDarwin ''
23 install_name_tool -id $out/lib/libsonic.so.0.3.0 $out/lib/libsonic.so.0.3.0
27 description = "Simple library to speed up or slow down speech";
28 homepage = "https://github.com/waywardgeek/sonic";
29 license = licenses.asl20;
30 maintainers = with maintainers; [ aske ];
31 platforms = platforms.all;