2015-01-25 08:24:15 +00:00
|
|
|
{ stdenv, fetchFromGitHub, boost, fftw, qt5 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "0.11.0-20141105";
|
|
|
|
name = "libkeyfinder-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
repo = "libKeyFinder";
|
|
|
|
owner = "ibsh";
|
|
|
|
rev = "592ef1f3d3ada489f80814d5ccfbc8de6029dc9d";
|
|
|
|
sha256 = "0xcqpizwbn6wik3w7h9k1lvgrp3r3w6yyy55flvnwwwgvkry48as";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Musical key detection for digital audio (C++ library)";
|
|
|
|
homepage = http://www.ibrahimshaath.co.uk/keyfinder/;
|
2015-05-28 18:20:29 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2015-01-25 08:24:15 +00:00
|
|
|
platforms = with platforms; linux;
|
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
|
2015-03-24 15:31:27 +00:00
|
|
|
buildInputs = [ fftw qt5.base ];
|
2015-01-25 08:24:15 +00: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
|
|
|
|
'';
|
|
|
|
}
|