git.iko.soy/typeable/nixpkgs
on master help sign in
keyfinder-cli: use old libkeyfinder 0.11 "for now"
828f9eaTobias Geerinckx-Rice
pkgs/applications/audio/keyfinder-cli/default.nix+5−4
@@ -1,6 +1,6 @@
1−{ stdenv, fetchFromGitHub, libav, libkeyfinder }:
1+{ stdenv, fetchFromGitHub, libav, libkeyfinder_0_11 }:
2
2
3−let version = "20150130"; in
3+let version = "20150201"; in
4stdenv.mkDerivation rec {
4stdenv.mkDerivation rec {
5 name = "keyfinder-cli-${version}";
5 name = "keyfinder-cli-${version}";
6
6
@@ -12,19 +12,20 @@ stdenv.mkDerivation rec {
12 };
12 };
13
13
14 meta = with stdenv.lib; {
14 meta = with stdenv.lib; {
15+ inherit version;
16+ inherit (src.meta) homepage;
15 description = "Musical key detection for digital audio (command-line tool)";
17 description = "Musical key detection for digital audio (command-line tool)";
16 longDescription = ''
18 longDescription = ''
17 This small utility is the automation-oriented DJ's best friend. By making
19 This small utility is the automation-oriented DJ's best friend. By making
18 use of Ibrahim Sha'ath's high quality libKeyFinder library, it can be
20 use of Ibrahim Sha'ath's high quality libKeyFinder library, it can be
19 used to estimate the musical key of many different audio formats.
21 used to estimate the musical key of many different audio formats.
20 '';
22 '';
21− homepage = https://github.com/EvanPurkhiser/keyfinder-cli;
22 license = licenses.gpl3Plus;
23 license = licenses.gpl3Plus;
23 platforms = with platforms; linux;
24 platforms = with platforms; linux;
24 maintainers = with maintainers; [ nckx ];
25 maintainers = with maintainers; [ nckx ];
25 };
26 };
26
27
27− buildInputs = [ libav libkeyfinder ];
28+ buildInputs = [ libav libkeyfinder_0_11 ];
28
29
29 makeFlagsArray = "PREFIX=$(out)";
30 makeFlagsArray = "PREFIX=$(out)";
30
31
pkgs/development/libraries/libkeyfinder/0.11.nixnew file+40
@@ -0,0 +1,40 @@
1+{ stdenv, fetchFromGitHub, boost, fftw, qt5 }:
2+
3+let version = "0.11"; in
4+stdenv.mkDerivation {
5+ name = "libkeyfinder-${version}";
6+
7+ src = fetchFromGitHub {
8+ sha256 = "0674gykdi1nffvba5rv6fsp0zw02w1gkpn9grh8w983xf13ykbz9";
9+ rev = "v${version}";
10+ repo = "libKeyFinder";
11+ owner = "ibsh";
12+ };
13+
14+ meta = with stdenv.lib; {
15+ inherit version;
16+ description = "Musical key detection for digital audio (C++ library)";
17+ homepage = http://www.ibrahimshaath.co.uk/keyfinder/;
18+ license = licenses.gpl3Plus;
19+ platforms = with platforms; linux;
20+ maintainers = with maintainers; [ nckx ];
21+ };
22+
23+ buildInputs = [ fftw qt5.base ];
24+ propagatedBuildInputs = [ boost ];
25+
26+ patchPhase = ''
27+ substituteInPlace LibKeyFinder.pro --replace "/usr/local" "$out"
28+ '';
29+
30+ configurePhase = ''
31+ qmake
32+ '';
33+
34+ enableParallelBuilding = true;
35+
36+ postInstall = ''
37+ mkdir -p $out/include/keyfinder
38+ cp *.h $out/include/keyfinder
39+ '';
40+}
pkgs/top-level/all-packages.nix+1
@@ -7098,6 +7098,7 @@ let
7098
7098
7099 libkate = callPackage ../development/libraries/libkate { };
7099 libkate = callPackage ../development/libraries/libkate { };
7100
7100
7101+ libkeyfinder_0_11 = callPackage ../development/libraries/libkeyfinder/0.11.nix { };
7101 libkeyfinder = callPackage ../development/libraries/libkeyfinder { };
7102 libkeyfinder = callPackage ../development/libraries/libkeyfinder { };
7102
7103
7103 libksba = callPackage ../development/libraries/libksba { };
7104 libksba = callPackage ../development/libraries/libksba { };