summary refs log tree commit diff
path: root/pkgs/development/libraries/chromaprint/default.nix
blob: 010d2cb7ccc2015fd37c8de09e931a493161861a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, cmake, ffmpeg, boost }:

stdenv.mkDerivation rec {
  name = "chromaprint-${version}";
  version = "1.1";

  src = fetchurl {
    url = "http://bitbucket.org/acoustid/chromaprint/downloads/${name}.tar.gz";
    sha256 = "04nd8xmy4kgnpfffj6hw893f80bwhp43i01zpmrinn3497mdf53b";
  };

  buildInputs = [ cmake ffmpeg boost ];

  cmakeFlags = [ "-DBUILD_EXAMPLES=ON" ];

  postInstall = "installBin examples/fpcalc";

  meta = with stdenv.lib; {
    homepage = "http://acoustid.org/chromaprint";
    description = "AcoustID audio fingerprinting library";
    maintainers = with maintainers; [ emery ];
    license = licenses.lgpl21Plus;
    platforms = platforms.all;
  };
}