1{ stdenv, fetchurl, cmake, boost, ffmpeg }:
2
3stdenv.mkDerivation rec {
4 name = "chromaprint-${version}";
5 version = "1.3.2";
6
7 src = fetchurl {
8 url = "http://bitbucket.org/acoustid/chromaprint/downloads/${name}.tar.gz";
9 sha256 = "0lln8dh33gslb9cbmd1hcv33pr6jxdwipd8m8gbsyhksiq6r1by3";
10 };
11
12 nativeBuildInputs = [ cmake ];
13
14 buildInputs = [ boost ffmpeg ];
15
16 cmakeFlags = [ "-DBUILD_EXAMPLES=ON" ];
17
18 meta = with stdenv.lib; {
19 homepage = https://acoustid.org/chromaprint;
20 description = "AcoustID audio fingerprinting library";
21 maintainers = with maintainers; [ ehmry ];
22 license = licenses.lgpl21Plus;
23 platforms = platforms.linux;
24 };
25}