2021-01-10 23:54:33 -08:00
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, cmake, pkg-config, qt4, taglib, chromaprint, ffmpeg }:
|
2013-08-14 09:36:23 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "acoustid-fingerprinter";
|
2013-08-14 09:36:23 -07:00
|
|
|
version = "0.6";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2017-08-13 04:43:16 -07:00
|
|
|
url = "https://bitbucket.org/acoustid/acoustid-fingerprinter/downloads/"
|
2019-08-15 05:41:18 -07:00
|
|
|
+ "${pname}-${version}.tar.gz";
|
2013-08-14 09:36:23 -07:00
|
|
|
sha256 = "0ckglwy95qgqvl2l6yd8ilwpd6qs7yzmj8g7lnxb50d12115s5n0";
|
|
|
|
};
|
|
|
|
|
2020-12-30 23:48:55 -08:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ qt4 taglib chromaprint ffmpeg ];
|
2013-08-14 09:36:23 -07:00
|
|
|
|
2021-01-15 01:19:50 -08:00
|
|
|
cmakeFlags = [ "-DTAGLIB_MIN_VERSION=${lib.getVersion taglib}" ];
|
2016-03-17 03:15:53 -07:00
|
|
|
|
2018-11-10 17:18:29 -08:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2021-04-25 01:15:15 -07:00
|
|
|
name = "fix-build-with-libav-10.patch";
|
|
|
|
url = "https://bitbucket.org/acoustid/acoustid-fingerprinter/commits/2c778334a9fc2f0ccf9b1d7635c116bce6509748/raw";
|
|
|
|
sha256 = "1smyp3x5n6jwxpgw60xsijq2fn6g1gl759h1lm5agaxhcyyqn0i0";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fix-build-failure-on-gcc-6.patch";
|
2018-11-10 17:18:29 -08:00
|
|
|
url = "https://bitbucket.org/acoustid/acoustid-fingerprinter/commits/632e87969c3a5562a5d4842b03613267ba6236b2/raw";
|
|
|
|
sha256 = "15hm9knrpqn3yqrwyjz4zh2aypwbcycd0c5svrsy1fb2h2rh05jk";
|
|
|
|
})
|
|
|
|
];
|
2017-01-22 10:56:55 -08:00
|
|
|
|
2021-01-10 23:54:33 -08:00
|
|
|
meta = with lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://acoustid.org/fingerprinter";
|
2013-08-14 09:36:23 -07:00
|
|
|
description = "Audio fingerprinting tool using chromaprint";
|
2021-01-15 01:19:50 -08:00
|
|
|
license = lib.licenses.gpl2Plus;
|
2016-03-17 03:15:53 -07:00
|
|
|
maintainers = with maintainers; [ ehmry ];
|
2016-08-02 10:50:55 -07:00
|
|
|
platforms = with platforms; linux;
|
2013-08-14 09:36:23 -07:00
|
|
|
};
|
|
|
|
}
|