lol
1{ stdenv, fetchFromGitHub, libav, libkeyfinder_0_11 }:
2
3let version = "20150201"; in
4stdenv.mkDerivation rec {
5 name = "keyfinder-cli-${version}";
6
7 src = fetchFromGitHub {
8 repo = "keyfinder-cli";
9 owner = "EvanPurkhiser";
10 rev = "e8a20e73f8a465a6c3c9e71dabf4b636244a9b0c";
11 sha256 = "0x198ijr6wgzq24642s4pz5zxn4gvcc7dxmb6d1bfn3dwzi3j8lp";
12 };
13
14 meta = with stdenv.lib; {
15 inherit version;
16 inherit (src.meta) homepage;
17 description = "Musical key detection for digital audio (command-line tool)";
18 longDescription = ''
19 This small utility is the automation-oriented DJ's best friend. By making
20 use of Ibrahim Sha'ath's high quality libKeyFinder library, it can be
21 used to estimate the musical key of many different audio formats.
22 '';
23 license = licenses.gpl3Plus;
24 platforms = with platforms; linux;
25 maintainers = with maintainers; [ nckx ];
26 };
27
28 buildInputs = [ libav libkeyfinder_0_11 ];
29
30 makeFlagsArray = "PREFIX=$(out)";
31
32 enableParallelBuilding = true;
33}