2017-01-22 18:56:55 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, cmake, pkgconfig, qt4, taglib, chromaprint, ffmpeg }:
|
2013-08-14 16:36:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "acoustid-fingerprinter";
|
2013-08-14 16:36:23 +00:00
|
|
|
version = "0.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-08-13 11:43:16 +00:00
|
|
|
url = "https://bitbucket.org/acoustid/acoustid-fingerprinter/downloads/"
|
2019-08-15 12:41:18 +00:00
|
|
|
+ "${pname}-${version}.tar.gz";
|
2013-08-14 16:36:23 +00:00
|
|
|
sha256 = "0ckglwy95qgqvl2l6yd8ilwpd6qs7yzmj8g7lnxb50d12115s5n0";
|
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ cmake qt4 taglib chromaprint ffmpeg ];
|
2013-08-14 16:36:23 +00:00
|
|
|
|
2019-11-24 17:22:28 +00:00
|
|
|
cmakeFlags = [ "-DTAGLIB_MIN_VERSION=${stdenv.lib.getVersion taglib}" ];
|
2016-03-17 10:15:53 +00:00
|
|
|
|
2018-11-11 01:18:29 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://bitbucket.org/acoustid/acoustid-fingerprinter/commits/632e87969c3a5562a5d4842b03613267ba6236b2/raw";
|
|
|
|
sha256 = "15hm9knrpqn3yqrwyjz4zh2aypwbcycd0c5svrsy1fb2h2rh05jk";
|
|
|
|
})
|
|
|
|
./ffmpeg.patch
|
|
|
|
];
|
2017-01-22 18:56:55 +00:00
|
|
|
|
2016-03-17 10:15:53 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-08-13 11:43:16 +00:00
|
|
|
homepage = https://acoustid.org/fingerprinter;
|
2013-08-14 16:36:23 +00:00
|
|
|
description = "Audio fingerprinting tool using chromaprint";
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2016-03-17 10:15:53 +00:00
|
|
|
maintainers = with maintainers; [ ehmry ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = with platforms; linux;
|
2013-08-14 16:36:23 +00:00
|
|
|
};
|
|
|
|
}
|