nixpkgs/pkgs/development/libraries/sonic/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
931 B
Nix
Raw Normal View History

{ lib, 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
};
makeFlags = [ "PREFIX=${placeholder "out"}" "CC=${stdenv.cc.targetPrefix}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
'' + lib.optionalString stdenv.isDarwin ''
2020-12-27 09:23:00 +00:00
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
'';
meta = with lib; {
2016-09-04 23:37:52 +00:00
description = "Simple library to speed up or slow down speech";
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
};
}