Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 34 lines 958 B view raw
1{ lib, stdenv, fetchFromGitHub, fftw, installShellFiles }: 2 3stdenv.mkDerivation { 4 pname = "sonic-unstable"; 5 version = "2020-12-27"; 6 7 src = fetchFromGitHub { 8 owner = "waywardgeek"; 9 repo = "sonic"; 10 rev = "4a052d9774387a9d9b4af627f6a74e1694419960"; 11 sha256 = "0ah54nizb6iwcx277w104wsfnx05vrp4sh56d2pfxhf8xghg54m6"; 12 }; 13 14 makeFlags = [ "PREFIX=${placeholder "out"}" "CC=${stdenv.cc.targetPrefix}cc" ]; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 buildInputs = [ fftw ]; 19 20 postInstall = '' 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 24 ''; 25 26 meta = with lib; { 27 description = "Simple library to speed up or slow down speech"; 28 mainProgram = "sonic"; 29 homepage = "https://github.com/waywardgeek/sonic"; 30 license = licenses.asl20; 31 maintainers = with maintainers; [ aske ]; 32 platforms = platforms.all; 33 }; 34}