nixpkgs/pkgs/development/libraries/libkeyfinder/default.nix

39 lines
927 B
Nix
Raw Normal View History

2017-06-02 17:40:19 +02:00
{ stdenv, fetchFromGitHub, fftw, qtbase, qmake }:
stdenv.mkDerivation rec {
pname = "libkeyfinder";
version = "2.1";
src = fetchFromGitHub {
2015-07-15 02:37:11 +02:00
sha256 = "07kc0cl6kirgmpdgkgmp6r3yvyf7b1w569z01g8rfl1cig80qdc7";
2015-06-04 18:16:10 +02:00
rev = "v${version}";
repo = "libKeyFinder";
owner = "ibsh";
};
2017-06-02 17:40:19 +02:00
nativeBuildInputs = [ qmake ];
buildInputs = [ fftw qtbase ];
2015-07-15 02:37:11 +02:00
postPatch = ''
substituteInPlace LibKeyFinder.pro \
--replace "/usr/local" "$out" \
--replace "-stdlib=libc++" ""
'';
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
'';
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;
};
}