python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / audio / libkeyfinder / default.nix
blob0a48dc479045c091dcad4d91c67fc3286c435f3a
1 { lib, stdenv, fetchpatch, fetchFromGitHub, cmake, fftw, catch2 }:
3 stdenv.mkDerivation rec {
4   pname = "libkeyfinder";
5   version = "2.2.6";
7   src = fetchFromGitHub {
8     owner = "mixxxdj";
9     repo = "libkeyfinder";
10     rev = "v${version}";
11     sha256 = "sha256-7w/Wc9ncLinbnM2q3yv5DBtFoJFAM2e9xAUTsqvE9mg=";
12   };
14   # in main post 2.2.6, see https://github.com/mixxxdj/libkeyfinder/issues/21
15   patches = [
16     (fetchpatch {
17       name = "fix-pkg-config";
18       url = "https://github.com/mixxxdj/libkeyfinder/commit/4e1a5022d4c91e3ecfe9be5c3ac7cc488093bd2e.patch";
19       sha256 = "08llmgp6r11bq5s820j3fs9bgriaibkhq8r3v2av064w66mwp48x";
20     })
21   ];
23   nativeBuildInputs = [ cmake ];
25   buildInputs = [ fftw ];
27   checkInputs = [ catch2 ];
29   doCheck = true;
31   meta = with lib; {
32     description = "Musical key detection for digital audio (C++ library)";
33     homepage = "https://mixxxdj.github.io/libkeyfinder/";
34     license = licenses.gpl3Plus;
35     platforms = platforms.unix;
36   };