nixpkgs/pkgs/development/libraries/libkeyfinder/default.nix
Tobias Geerinckx-Rice 158e1cfdd0 Don't use "with licenses;" for single licences
And don't use square brackets on such lines.
2015-05-28 19:20:29 +02:00

40 lines
966 B
Nix

{ 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/;
license = licenses.gpl3Plus;
platforms = with platforms; linux;
maintainers = with maintainers; [ nckx ];
};
buildInputs = [ fftw qt5.base ];
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
'';
}