2022-05-17 11:31:27 +00:00
|
|
|
{ lib, stdenv, fetchpatch, fetchFromGitHub, cmake, fftw, catch2 }:
|
2015-01-25 08:24:15 +00:00
|
|
|
|
2016-01-24 19:31:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libkeyfinder";
|
2022-01-13 17:11:36 +00:00
|
|
|
version = "2.2.6";
|
2015-01-25 08:24:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-02-02 08:41:08 +00:00
|
|
|
owner = "mixxxdj";
|
|
|
|
repo = "libkeyfinder";
|
2015-06-04 16:16:10 +00:00
|
|
|
rev = "v${version}";
|
2022-01-13 17:11:36 +00:00
|
|
|
sha256 = "sha256-7w/Wc9ncLinbnM2q3yv5DBtFoJFAM2e9xAUTsqvE9mg=";
|
2015-01-25 08:24:15 +00:00
|
|
|
};
|
|
|
|
|
2022-05-17 11:31:27 +00:00
|
|
|
# in main post 2.2.6, see https://github.com/mixxxdj/libkeyfinder/issues/21
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-pkg-config";
|
|
|
|
url = "https://github.com/mixxxdj/libkeyfinder/commit/4e1a5022d4c91e3ecfe9be5c3ac7cc488093bd2e.patch";
|
|
|
|
sha256 = "08llmgp6r11bq5s820j3fs9bgriaibkhq8r3v2av064w66mwp48x";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-02-02 08:41:08 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2015-01-25 08:24:15 +00:00
|
|
|
|
2021-02-02 08:41:08 +00:00
|
|
|
buildInputs = [ fftw ];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ catch2 ];
|
2021-02-02 08:41:08 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
2016-01-24 19:31:44 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-01-24 19:31:44 +00:00
|
|
|
description = "Musical key detection for digital audio (C++ library)";
|
2021-02-02 08:41:08 +00:00
|
|
|
homepage = "https://mixxxdj.github.io/libkeyfinder/";
|
2016-01-24 19:31:44 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-10-01 19:39:40 +00:00
|
|
|
platforms = platforms.unix;
|
2016-01-24 19:31:44 +00:00
|
|
|
};
|
2015-01-25 08:24:15 +00:00
|
|
|
}
|