2021-02-02 08:41:08 +00:00
|
|
|
{ lib, stdenv, 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 13:41:18 +01:00
|
|
|
pname = "libkeyfinder";
|
2021-02-02 08:41:08 +00:00
|
|
|
version = "2.2.4";
|
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 17:16:10 +01:00
|
|
|
rev = "v${version}";
|
2021-02-02 08:41:08 +00:00
|
|
|
sha256 = "005qq81xfzi1iifvpgkqpizxcrfisafq2r0cjp4fxqh1ih7bfimv";
|
2015-01-25 08:24:15 +00:00
|
|
|
};
|
|
|
|
|
2021-02-04 20:17:25 +00:00
|
|
|
# needed for finding libkeyfinder.so to link it into keyfinder-tests executable
|
|
|
|
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
|
2015-01-25 08:24:15 +00:00
|
|
|
|
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 ];
|
|
|
|
|
|
|
|
checkInputs = [ catch2 ];
|
|
|
|
|
|
|
|
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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
2015-01-25 08:24:15 +00:00
|
|
|
}
|