From 5f7ebd07c647b16563aaabcb6a6bcd5566b0549a Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 25 Jan 2015 09:26:24 +0100 Subject: [PATCH] Add keyfinder-cli: musical key detection --- .../audio/keyfinder-cli/default.nix | 32 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/applications/audio/keyfinder-cli/default.nix diff --git a/pkgs/applications/audio/keyfinder-cli/default.nix b/pkgs/applications/audio/keyfinder-cli/default.nix new file mode 100644 index 000000000000..a6e843d0db8d --- /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; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b3c369ad4738..95b3d3e375aa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -10346,6 +10346,8 @@ let keyfinder = callPackage ../applications/audio/keyfinder { }; + keyfinder-cli = callPackage ../applications/audio/keyfinder-cli { }; + keymon = callPackage ../applications/video/key-mon { }; kid3 = callPackage ../applications/audio/kid3 {