mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
39 lines
927 B
Nix
39 lines
927 B
Nix
{ stdenv, fetchFromGitHub, fftw, qtbase, qmake }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libkeyfinder";
|
|
version = "2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "07kc0cl6kirgmpdgkgmp6r3yvyf7b1w569z01g8rfl1cig80qdc7";
|
|
rev = "v${version}";
|
|
repo = "libKeyFinder";
|
|
owner = "ibsh";
|
|
};
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
buildInputs = [ fftw qtbase ];
|
|
|
|
postPatch = ''
|
|
substituteInPlace LibKeyFinder.pro \
|
|
--replace "/usr/local" "$out" \
|
|
--replace "-stdlib=libc++" ""
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
postInstall = ''
|
|
mkdir -p $out/include/keyfinder
|
|
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;
|
|
};
|
|
}
|