1{ lib, stdenv, fetchurl, cmake }:
2
3stdenv.mkDerivation rec {
4 pname = "uchardet";
5 version = "0.0.8";
6
7 outputs = [ "bin" "out" "man" "dev" ];
8
9 src = fetchurl {
10 url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
11 sha256 = "sha256-6Xpgz8AKHBR6Z0sJe7FCKr2fp4otnOPz/cwueKNKxfA=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 doCheck = !stdenv.isi686; # tests fail on i686
17
18 meta = with lib; {
19 description = "Mozilla's Universal Charset Detector C/C++ API";
20 mainProgram = "uchardet";
21 homepage = "https://www.freedesktop.org/wiki/Software/uchardet/";
22 license = licenses.mpl11;
23 maintainers = with maintainers; [ ];
24 platforms = with platforms; unix;
25 };
26}