3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libkeyfinder/default.nix

44 lines
1,009 B
Nix
Raw Normal View History

2015-07-15 01:37:11 +01:00
{ stdenv, fetchFromGitHub, fftw, qt5 }:
2015-07-15 01:37:11 +01:00
let version = "2.1"; in
2015-06-04 17:16:10 +01:00
stdenv.mkDerivation {
name = "libkeyfinder-${version}";
src = fetchFromGitHub {
2015-07-15 01:37:11 +01:00
sha256 = "07kc0cl6kirgmpdgkgmp6r3yvyf7b1w569z01g8rfl1cig80qdc7";
2015-06-04 17:16:10 +01:00
rev = "v${version}";
repo = "libKeyFinder";
owner = "ibsh";
};
meta = with stdenv.lib; {
2015-06-04 17:16:10 +01:00
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 ];
};
2015-03-24 15:31:27 +00:00
buildInputs = [ fftw qt5.base ];
2015-07-15 01:37:11 +01:00
postPatch = ''
substituteInPlace LibKeyFinder.pro \
--replace "/usr/local" "$out" \
--replace "-stdlib=libc++" ""
'';
configurePhase = ''
qmake
'';
enableParallelBuilding = true;
postInstall = ''
mkdir -p $out/include/keyfinder
2015-07-15 01:37:11 +01:00
install -m644 *.h $out/include/keyfinder
mkdir -p $out/lib
cp -a lib*.so* $out/lib
'';
}