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