2021-02-13 14:23:35 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ffmpeg, libkeyfinder }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "keyfinder-cli";
|
2021-02-13 14:23:35 +00:00
|
|
|
version = "1.1.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "keyfinder-cli";
|
|
|
|
owner = "EvanPurkhiser";
|
2021-02-13 14:23:35 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1mlcygbj3gqii3cz8jd6ks1lz612i4jp0343qjg293xm39fg47ns";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
buildInputs = [ ffmpeg libkeyfinder ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit (src.meta) homepage;
|
|
|
|
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.
|
|
|
|
'';
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|