2014-08-23 23:53:27 +02:00
|
|
|
{ stdenv, fetchurl, cmake, ffmpeg, boost }:
|
2013-08-14 18:34:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "chromaprint-${version}";
|
2013-12-15 10:27:17 +01:00
|
|
|
version = "1.1";
|
2013-08-14 18:34:46 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://bitbucket.org/acoustid/chromaprint/downloads/${name}.tar.gz";
|
2013-12-15 10:27:17 +01:00
|
|
|
sha256 = "04nd8xmy4kgnpfffj6hw893f80bwhp43i01zpmrinn3497mdf53b";
|
2013-08-14 18:34:46 +02:00
|
|
|
};
|
|
|
|
|
2014-08-23 23:53:27 +02:00
|
|
|
buildInputs = [ cmake ffmpeg boost ];
|
2013-08-14 18:34:46 +02:00
|
|
|
|
2014-08-23 23:53:27 +02:00
|
|
|
cmakeFlags = [ "-DBUILD_EXAMPLES=ON" ];
|
|
|
|
|
|
|
|
postInstall = "installBin examples/fpcalc";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2013-08-14 18:34:46 +02:00
|
|
|
homepage = "http://acoustid.org/chromaprint";
|
|
|
|
description = "AcoustID audio fingerprinting library";
|
2014-08-23 23:53:27 +02:00
|
|
|
maintainers = with maintainers; [ emery ];
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.all;
|
2013-08-14 18:34:46 +02:00
|
|
|
};
|
|
|
|
}
|