about summary refs log tree commit diff
path: root/pkgs/applications/audio/keyfinder-cli
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-01-25 09:26:24 +0100
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2015-01-25 10:17:49 +0100
commit5f7ebd07c647b16563aaabcb6a6bcd5566b0549a (patch)
tree39d9bda004e053d0e1c05b3cc3065dd1c43660e8 /pkgs/applications/audio/keyfinder-cli
parent7ccc6a3620e4888c33a7e119347aa5aaac711349 (diff)
Add keyfinder-cli: musical key detection
Diffstat (limited to 'pkgs/applications/audio/keyfinder-cli')
-rw-r--r--pkgs/applications/audio/keyfinder-cli/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/audio/keyfinder-cli/default.nix b/pkgs/applications/audio/keyfinder-cli/default.nix
new file mode 100644
index 0000000000000..a6e843d0db8da
--- /dev/null
+++ b/pkgs/applications/audio/keyfinder-cli/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchFromGitHub, libav, libkeyfinder }:
+
+stdenv.mkDerivation rec {
+  version = "20150125";
+  name = "keyfinder-cli-${version}";
+
+  src = fetchFromGitHub {
+    repo = "keyfinder-cli";
+    owner = "EvanPurkhiser";
+    rev = "3a6f598b3661fdba73ada81cd200a6e56c23ddca";
+    sha256 = "05k4g9zdzi4q81p8lax9b2j4bcg1bpp04sdbza5i5pfz2fng2cf7";
+  };
+
+  meta = with stdenv.lib; {
+    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.
+    '';
+    homepage = https://github.com/EvanPurkhiser/keyfinder-cli;
+    license = with licenses; gpl3Plus;
+    platforms = with platforms; linux;
+    maintainers = with maintainers; [ nckx ];
+  };
+
+  buildInputs = [ libav libkeyfinder ];
+
+  makeFlagsArray = "PREFIX=$(out)";
+
+  enableParallelBuilding = true;
+}