mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
Add libkeyfinder: musical key detection library
This commit is contained in:
parent
45a34f65fe
commit
be42ead349
39
pkgs/development/libraries/libkeyfinder/default.nix
Normal file
39
pkgs/development/libraries/libkeyfinder/default.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ 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 = with licenses; gpl3Plus;
|
||||
platforms = with platforms; linux;
|
||||
maintainers = with maintainers; [ nckx ];
|
||||
};
|
||||
|
||||
buildInputs = [ fftw qt5 ];
|
||||
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
|
||||
'';
|
||||
}
|
@ -6172,6 +6172,8 @@ let
|
||||
|
||||
libkate = callPackage ../development/libraries/libkate { };
|
||||
|
||||
libkeyfinder = callPackage ../development/libraries/libkeyfinder { };
|
||||
|
||||
libksba = callPackage ../development/libraries/libksba { };
|
||||
|
||||
libmad = callPackage ../development/libraries/libmad { };
|
||||
|
Loading…
Reference in New Issue
Block a user