2017-01-22 21:56:55 +03:00
|
|
|
{ stdenv, fetchurl, fetchpatch, cmake, pkgconfig, qt4, taglib, chromaprint, ffmpeg }:
|
2013-08-14 20:36:23 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "acoustid-fingerprinter-${version}";
|
|
|
|
version = "0.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://bitbucket.org/acoustid/acoustid-fingerprinter/downloads/"
|
|
|
|
+ "${name}.tar.gz";
|
|
|
|
sha256 = "0ckglwy95qgqvl2l6yd8ilwpd6qs7yzmj8g7lnxb50d12115s5n0";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ cmake pkgconfig qt4 taglib chromaprint ffmpeg ];
|
|
|
|
|
2016-03-17 13:15:53 +03:00
|
|
|
cmakeFlags = [ "-DTAGLIB_MIN_VERSION=${(builtins.parseDrvName taglib.name).version}" ];
|
|
|
|
|
2017-01-22 21:56:55 +03:00
|
|
|
patches = [ (fetchpatch {
|
|
|
|
url = "https://bitbucket.org/acoustid/acoustid-fingerprinter/commits/632e87969c3a5562a5d4842b03613267ba6236b2/raw";
|
|
|
|
sha256 = "15hm9knrpqn3yqrwyjz4zh2aypwbcycd0c5svrsy1fb2h2rh05jk";
|
|
|
|
}) ];
|
|
|
|
|
2016-03-17 13:15:53 +03:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 23:03:30 +03:00
|
|
|
homepage = http://acoustid.org/fingerprinter;
|
2013-08-14 20:36:23 +04:00
|
|
|
description = "Audio fingerprinting tool using chromaprint";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-03-17 13:15:53 +03:00
|
|
|
maintainers = with maintainers; [ ehmry ];
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = with platforms; linux;
|
2013-08-14 20:36:23 +04:00
|
|
|
};
|
|
|
|
}
|