keyfinder-cli: use old libkeyfinder 0.11 "for now"
The tool doesn't compile against versions 2.x. Also, fix the incorrect version number & use src.meta.homepage.
This commit is contained in:
parent
82cac9f9ac
commit
828f9ea8cc
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchFromGitHub, libav, libkeyfinder }:
|
||||
{ stdenv, fetchFromGitHub, libav, libkeyfinder_0_11 }:
|
||||
|
||||
let version = "20150130"; in
|
||||
let version = "20150201"; in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "keyfinder-cli-${version}";
|
||||
|
||||
@ -12,19 +12,20 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
inherit version;
|
||||
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.
|
||||
'';
|
||||
homepage = https://github.com/EvanPurkhiser/keyfinder-cli;
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = with platforms; linux;
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
|
||||
buildInputs = [ libav libkeyfinder ];
|
||||
buildInputs = [ libav libkeyfinder_0_11 ];
|
||||
|
||||
makeFlagsArray = "PREFIX=$(out)";
|
||||
|
||||
|
40
pkgs/development/libraries/libkeyfinder/0.11.nix
Normal file
40
pkgs/development/libraries/libkeyfinder/0.11.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ stdenv, fetchFromGitHub, boost, fftw, qt5 }:
|
||||
|
||||
let version = "0.11"; in
|
||||
stdenv.mkDerivation {
|
||||
name = "libkeyfinder-${version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
sha256 = "0674gykdi1nffvba5rv6fsp0zw02w1gkpn9grh8w983xf13ykbz9";
|
||||
rev = "v${version}";
|
||||
repo = "libKeyFinder";
|
||||
owner = "ibsh";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
inherit version;
|
||||
description = "Musical key detection for digital audio (C++ library)";
|
||||
homepage = http://www.ibrahimshaath.co.uk/keyfinder/;
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = with platforms; linux;
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
|
||||
buildInputs = [ fftw qt5.base ];
|
||||
propagatedBuildInputs = [ boost ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace LibKeyFinder.pro --replace "/usr/local" "$out"
|
||||
'';
|
||||
|
||||
configurePhase = ''
|
||||
qmake
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/include/keyfinder
|
||||
cp *.h $out/include/keyfinder
|
||||
'';
|
||||
}
|
@ -7098,6 +7098,7 @@ let
|
||||
|
||||
libkate = callPackage ../development/libraries/libkate { };
|
||||
|
||||
libkeyfinder_0_11 = callPackage ../development/libraries/libkeyfinder/0.11.nix { };
|
||||
libkeyfinder = callPackage ../development/libraries/libkeyfinder { };
|
||||
|
||||
libksba = callPackage ../development/libraries/libksba { };
|
||||
|
Loading…
Reference in New Issue
Block a user