mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
Merge pull request #111633 from dotlambda/libkeyfinder-2.2.4
This commit is contained in:
commit
7f0ed95d2b
@ -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;
|
||||
};
|
||||
|
@ -15140,6 +15140,8 @@ in
|
||||
|
||||
libkate = callPackage ../development/libraries/libkate { };
|
||||
|
||||
libkeyfinder = callPackage ../development/libraries/libkeyfinder { };
|
||||
|
||||
libkml = callPackage ../development/libraries/libkml { };
|
||||
|
||||
libksba = callPackage ../development/libraries/libksba { };
|
||||
@ -23061,7 +23063,7 @@ in
|
||||
|
||||
keyfinder = libsForQt5.callPackage ../applications/audio/keyfinder { };
|
||||
|
||||
keyfinder-cli = libsForQt5.callPackage ../applications/audio/keyfinder-cli { };
|
||||
keyfinder-cli = callPackage ../applications/audio/keyfinder-cli { };
|
||||
|
||||
kgraphviewer = libsForQt5.callPackage ../applications/graphics/kgraphviewer { };
|
||||
|
||||
|
@ -95,8 +95,6 @@ in (kdeFrameworks // plasma5 // plasma5.thirdParty // kdeApplications // qt5 //
|
||||
|
||||
libdbusmenu = callPackage ../development/libraries/libdbusmenu-qt/qt-5.5.nix { };
|
||||
|
||||
libkeyfinder = callPackage ../development/libraries/libkeyfinder { };
|
||||
|
||||
libktorrent = callPackage ../development/libraries/libktorrent { };
|
||||
|
||||
liblastfm = callPackage ../development/libraries/liblastfm { };
|
||||
|
Loading…
Reference in New Issue
Block a user