1 { lib, stdenv, fetchurl, cmake, boost, ffmpeg_4, darwin, zlib }:
3 stdenv.mkDerivation rec {
8 url = "https://github.com/acoustid/chromaprint/releases/download/v${version}/${pname}-${version}.tar.gz";
9 sha256 = "sha256-oarY+juLGLeNN1Wzdn+v+au2ckLgG0eOyaZOGQ8zXhw=";
12 nativeBuildInputs = [ cmake ];
14 buildInputs = [ boost ffmpeg_4 ] ++ lib.optionals stdenv.isDarwin
15 (with darwin.apple_sdk.frameworks; [Accelerate CoreGraphics CoreVideo zlib]);
17 cmakeFlags = [ "-DBUILD_EXAMPLES=ON" "-DBUILD_TOOLS=ON" ];
20 homepage = "https://acoustid.org/chromaprint";
21 description = "AcoustID audio fingerprinting library";
22 maintainers = with maintainers; [ ehmry ];
23 license = licenses.lgpl21Plus;
24 platforms = platforms.unix;