2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "uchardet";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "0.0.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "bin" "out" "man" "dev" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
|
2023-01-11 07:51:40 +00:00
|
|
|
sha256 = "sha256-6Xpgz8AKHBR6Z0sJe7FCKr2fp4otnOPz/cwueKNKxfA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-02-13 14:23:35 +00:00
|
|
|
doCheck = !stdenv.isi686; # tests fail on i686
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Mozilla's Universal Charset Detector C/C++ API";
|
|
|
|
homepage = "https://www.freedesktop.org/wiki/Software/uchardet/";
|
|
|
|
license = licenses.mpl11;
|
|
|
|
maintainers = with maintainers; [ cstrahan ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|