about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/chromaprint/default.nix
blob: 9da5a80f62057c59f4a6bd70324e2c9bb621c41b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, fetchurl, cmake, boost, ffmpeg_3 }:

stdenv.mkDerivation rec {
  pname = "chromaprint";
  version = "1.5.0";

  src = fetchurl {
    url = "https://github.com/acoustid/chromaprint/releases/download/v${version}/${pname}-${version}.tar.gz";
    sha256 = "0sknmyl5254rc55bvkhfwpl4dfvz45xglk1rq8zq5crmwq058fjp";
  };

  nativeBuildInputs = [ cmake ];

  buildInputs = [ boost ffmpeg_3 ];

  cmakeFlags = [ "-DBUILD_EXAMPLES=ON" "-DBUILD_TOOLS=ON" ];

  meta = with stdenv.lib; {
    homepage = "https://acoustid.org/chromaprint";
    description = "AcoustID audio fingerprinting library";
    maintainers = with maintainers; [ ehmry ];
    license = licenses.lgpl21Plus;
    platforms = platforms.linux;
  };
}