2020-12-27 09:22:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub, fftw, installShellFiles }:
|
2016-09-04 23:37:52 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-12-27 09:24:00 +00:00
|
|
|
pname = "sonic-unstable";
|
|
|
|
version = "2020-12-27";
|
2016-09-04 23:37:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "waywardgeek";
|
|
|
|
repo = "sonic";
|
2020-12-27 09:24:00 +00:00
|
|
|
rev = "4a052d9774387a9d9b4af627f6a74e1694419960";
|
|
|
|
sha256 = "0ah54nizb6iwcx277w104wsfnx05vrp4sh56d2pfxhf8xghg54m6";
|
2016-09-04 23:37:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-27 09:23:00 +00:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" "CC=cc" ];
|
2016-09-04 23:37:52 +00: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-04 23:37:52 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Simple library to speed up or slow down speech";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/waywardgeek/sonic";
|
2016-09-04 23:37:52 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ aske ];
|
2020-12-27 09:23:00 +00:00
|
|
|
platforms = platforms.all;
|
2016-09-04 23:37:52 +00:00
|
|
|
};
|
|
|
|
}
|