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