2015-09-27 17:23:39 +02:00
|
|
|
{ stdenv, fetchFromGitHub, fftw, qtbase }:
|
2015-01-25 09:24:15 +01:00
|
|
|
|
2015-07-15 02:37:11 +02:00
|
|
|
let version = "2.1"; in
|
2015-06-04 18:16:10 +02:00
|
|
|
stdenv.mkDerivation {
|
2015-01-25 09:24:15 +01:00
|
|
|
name = "libkeyfinder-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2015-07-15 02:37:11 +02:00
|
|
|
sha256 = "07kc0cl6kirgmpdgkgmp6r3yvyf7b1w569z01g8rfl1cig80qdc7";
|
2015-06-04 18:16:10 +02:00
|
|
|
rev = "v${version}";
|
2015-01-25 09:24:15 +01:00
|
|
|
repo = "libKeyFinder";
|
|
|
|
owner = "ibsh";
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-06-04 18:16:10 +02:00
|
|
|
inherit version;
|
2015-01-25 09:24:15 +01:00
|
|
|
description = "Musical key detection for digital audio (C++ library)";
|
|
|
|
homepage = http://www.ibrahimshaath.co.uk/keyfinder/;
|
2015-05-28 19:20:29 +02:00
|
|
|
license = licenses.gpl3Plus;
|
2015-11-17 21:29:29 +01:00
|
|
|
platforms = platforms.linux;
|
2015-01-25 09:24:15 +01:00
|
|
|
maintainers = with maintainers; [ nckx ];
|
|
|
|
};
|
|
|
|
|
2015-09-27 17:23:39 +02:00
|
|
|
buildInputs = [ fftw qtbase ];
|
2015-01-25 09:24:15 +01:00
|
|
|
|
2015-07-15 02:37:11 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace LibKeyFinder.pro \
|
|
|
|
--replace "/usr/local" "$out" \
|
|
|
|
--replace "-stdlib=libc++" ""
|
2015-01-25 09:24:15 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
qmake
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/include/keyfinder
|
2015-07-15 02:37:11 +02:00
|
|
|
install -m644 *.h $out/include/keyfinder
|
|
|
|
mkdir -p $out/lib
|
|
|
|
cp -a lib*.so* $out/lib
|
2015-01-25 09:24:15 +01:00
|
|
|
'';
|
|
|
|
}
|