base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / sp / sptk / package.nix
blob07b9bf3eb3c94473d927e9103f4a297473ed63be
1 { lib
2 , stdenv
3 , cmake
4 , fetchFromGitHub
5 , fetchpatch
6 }:
8 stdenv.mkDerivation rec {
9   pname = "sptk";
10   version = "4.2";
12   src = fetchFromGitHub {
13     owner = "sp-nitech";
14     repo = "SPTK";
15     rev = "v${version}";
16     hash = "sha256-lIyOcN2AR3ilUZ9stpicjbwlredbwgGPwmMICxZEijU=";
17   };
19   patches = [
20     # Fix gcc-13 build failure:
21     #   https://github.com/sp-nitech/SPTK/pull/57
22     (fetchpatch {
23       name = "gcc-13.patch";
24       url = "https://github.com/sp-nitech/SPTK/commit/060bc2ad7a753c1f9f9114a70d4c4337b91cb7e0.patch";
25       hash = "sha256-QfzpIS63LZyTHAaMGUZh974XLRNZLQG3om7ZJJ4RlgE=";
26     })
27   ];
29   nativeBuildInputs = [
30     cmake
31   ];
33   doCheck = true;
35   meta = with lib; {
36     changelog = "https://github.com/sp-nitech/SPTK/releases/tag/v${version}";
37     description = "Suite of speech signal processing tools";
38     homepage = "https://github.com/sp-nitech/SPTK";
39     license = licenses.asl20;
40     maintainers = with maintainers; [ fab ];
41   };