2015-01-25 11:24:15 +03:00
|
|
|
{ stdenv, fetchFromGitHub, boost, fftw, qt5 }:
|
|
|
|
|
2015-06-04 19:16:10 +03:00
|
|
|
let version = "0.11"; in
|
|
|
|
stdenv.mkDerivation {
|
2015-01-25 11:24:15 +03:00
|
|
|
name = "libkeyfinder-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2015-06-04 19:16:10 +03:00
|
|
|
sha256 = "0674gykdi1nffvba5rv6fsp0zw02w1gkpn9grh8w983xf13ykbz9";
|
|
|
|
rev = "v${version}";
|
2015-01-25 11:24:15 +03:00
|
|
|
repo = "libKeyFinder";
|
|
|
|
owner = "ibsh";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-06-04 19:16:10 +03:00
|
|
|
inherit version;
|
2015-01-25 11:24:15 +03:00
|
|
|
description = "Musical key detection for digital audio (C++ library)";
|
|
|
|
homepage = http://www.ibrahimshaath.co.uk/keyfinder/;
|
2015-05-28 20:20:29 +03:00
|
|
|
license = licenses.gpl3Plus;
|
2015-01-25 11:24:15 +03:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
|
2015-03-24 18:31:27 +03:00
|
|
|
buildInputs = [ fftw qt5.base ];
|
2015-01-25 11:24:15 +03:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
}
|