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 {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "sonic";
|
2019-12-08 09:18:58 +00:00
|
|
|
version = "2018-07-06";
|
2016-09-04 23:37:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "waywardgeek";
|
|
|
|
repo = "sonic";
|
2019-12-08 09:18:58 +00:00
|
|
|
rev = "71c51195de71627d7443d05378c680ba756545e8";
|
|
|
|
sha256 = "1z9qdk3pk507hdg39v2z1hanlw2wv7mhn8br4cb8qry9z9qwi87i";
|
2016-09-04 23:37:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "s,^PREFIX=.*,PREFIX=$out," Makefile
|
|
|
|
'';
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|