libkeyfinder: 2.1 -> 2.2.4

Also move to all-packages.nix since it does not use qmake anymore.
This commit is contained in:
Robert Schütz
2021-02-02 17:36:08 +01:00
parent 457ff6d28e
commit 4430bf6498
3 changed files with 17 additions and 22 deletions
@@ -1,37 +1,32 @@
{ lib, stdenv, fetchFromGitHub, fftw, qtbase, qmake }:
{ lib, stdenv, fetchFromGitHub, cmake, fftw, catch2 }:
stdenv.mkDerivation rec {
pname = "libkeyfinder";
version = "2.1";
version = "2.2.4";
src = fetchFromGitHub {
sha256 = "07kc0cl6kirgmpdgkgmp6r3yvyf7b1w569z01g8rfl1cig80qdc7";
owner = "mixxxdj";
repo = "libkeyfinder";
rev = "v${version}";
repo = "libKeyFinder";
owner = "ibsh";
sha256 = "005qq81xfzi1iifvpgkqpizxcrfisafq2r0cjp4fxqh1ih7bfimv";
};
nativeBuildInputs = [ qmake ];
buildInputs = [ fftw qtbase ];
postPatch = ''
substituteInPlace LibKeyFinder.pro \
--replace "/usr/local" "$out" \
--replace "-stdlib=libc++" ""
# needed for linking libkeyfinder.so into keyfinder-tests executable
preBuild = ''
export LD_LIBRARY_PATH=$(pwd)
'';
enableParallelBuilding = true;
nativeBuildInputs = [ cmake ];
postInstall = ''
mkdir -p $out/include/keyfinder
install -m644 *.h $out/include/keyfinder
mkdir -p $out/lib
cp -a lib*.so* $out/lib
'';
buildInputs = [ fftw ];
checkInputs = [ catch2 ];
doCheck = true;
meta = with lib; {
description = "Musical key detection for digital audio (C++ library)";
homepage = "http://www.ibrahimshaath.co.uk/keyfinder/";
homepage = "https://mixxxdj.github.io/libkeyfinder/";
license = licenses.gpl3Plus;
platforms = platforms.linux;
};