2024-08-27 21:52:44 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
ffmpeg,
|
|
|
|
libkeyfinder,
|
|
|
|
fftw,
|
|
|
|
}:
|
2015-01-25 08:26:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "keyfinder-cli";
|
2024-09-01 00:54:52 +00:00
|
|
|
version = "1.1.2";
|
2015-01-25 08:26:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "keyfinder-cli";
|
|
|
|
owner = "EvanPurkhiser";
|
2021-01-30 18:28:16 +00:00
|
|
|
rev = "v${version}";
|
2024-09-01 00:54:52 +00:00
|
|
|
hash = "sha256-9/+wzPTaQ5PfPiqTZ5EuHdswXJgfgnvAul/FeeDbbJA=";
|
2015-01-25 08:26:24 +00:00
|
|
|
};
|
|
|
|
|
2024-08-27 21:52:44 +00:00
|
|
|
buildInputs = [
|
|
|
|
ffmpeg
|
|
|
|
libkeyfinder
|
|
|
|
fftw
|
|
|
|
];
|
2015-09-12 00:34:22 +00:00
|
|
|
|
2015-11-26 17:44:44 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2015-09-12 00:34:22 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-07-15 01:12:11 +00:00
|
|
|
inherit (src.meta) homepage;
|
2015-01-25 08:26:24 +00:00
|
|
|
description = "Musical key detection for digital audio (command-line tool)";
|
|
|
|
longDescription = ''
|
|
|
|
This small utility is the automation-oriented DJ's best friend. By making
|
|
|
|
use of Ibrahim Sha'ath's high quality libKeyFinder library, it can be
|
|
|
|
used to estimate the musical key of many different audio formats.
|
|
|
|
'';
|
2015-05-28 17:20:29 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-05-16 13:16:15 +00:00
|
|
|
platforms = platforms.unix;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "keyfinder-cli";
|
2015-01-25 08:26:24 +00:00
|
|
|
};
|
|
|
|
}
|