mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 12:43:52 +00:00
32 lines
776 B
Nix
32 lines
776 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, fftw, catch2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libkeyfinder";
|
|
version = "2.2.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mixxxdj";
|
|
repo = "libkeyfinder";
|
|
rev = "v${version}";
|
|
sha256 = "005qq81xfzi1iifvpgkqpizxcrfisafq2r0cjp4fxqh1ih7bfimv";
|
|
};
|
|
|
|
# needed for finding libkeyfinder.so to link it into keyfinder-tests executable
|
|
cmakeFlags = [ "-DCMAKE_SKIP_BUILD_RPATH=OFF" ];
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ fftw ];
|
|
|
|
checkInputs = [ catch2 ];
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Musical key detection for digital audio (C++ library)";
|
|
homepage = "https://mixxxdj.github.io/libkeyfinder/";
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|