2020-12-27 09:22:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fftw, installShellFiles }:
|
2016-09-05 00:37:52 +01:00
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "sonic";
|
2019-12-08 09:18:58 +00:00
|
|
|
version = "2018-07-06";
|
2016-09-05 00:37:52 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "waywardgeek";
|
|
|
|
repo = "sonic";
|
2019-12-08 09:18:58 +00:00
|
|
|
rev = "71c51195de71627d7443d05378c680ba756545e8";
|
|
|
|
sha256 = "1z9qdk3pk507hdg39v2z1hanlw2wv7mhn8br4cb8qry9z9qwi87i";
|
2016-09-05 00:37:52 +01:00
|
|
|
};
|
|
|
|
|
2020-12-27 09:23:00 +00:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" "CC=cc" ];
|
2016-09-05 00:37:52 +01:00
|
|
|
|
2020-12-27 09:22:00 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2019-12-08 09:18:58 +00:00
|
|
|
buildInputs = [ fftw ];
|
|
|
|
|
2020-12-27 09:22:00 +00:00
|
|
|
postInstall = ''
|
|
|
|
installManPage sonic.1
|
2020-12-27 09:23:00 +00:00
|
|
|
'' + stdenv.lib.optionalString stdenv.isDarwin ''
|
|
|
|
install_name_tool -id $out/lib/libsonic.so.0.3.0 $out/lib/libsonic.so.0.3.0
|
2020-12-27 09:22:00 +00:00
|
|
|
'';
|
|
|
|
|
2016-09-05 00:37:52 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simple library to speed up or slow down speech";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/waywardgeek/sonic";
|
2016-09-05 00:37:52 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ aske ];
|
2020-12-27 09:23:00 +00:00
|
|
|
platforms = platforms.all;
|
2016-09-05 00:37:52 +01:00
|
|
|
};
|
|
|
|
}
|