core/pkgs/by-name/li/libuchardet/default.nix

37 lines
751 B
Nix
Raw Normal View History

2024-06-30 08:12:46 +00:00
{
lib,
stdenv,
fetchurl,
cmake,
}:
2024-05-02 00:46:19 +00:00
stdenv.mkDerivation rec {
pname = "uchardet";
version = "0.0.8";
2024-06-30 08:12:46 +00:00
outputs = [
"bin"
"out"
"man"
"dev"
];
2024-05-02 00:46:19 +00:00
src = fetchurl {
url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
sha256 = "sha256-6Xpgz8AKHBR6Z0sJe7FCKr2fp4otnOPz/cwueKNKxfA=";
};
nativeBuildInputs = [ cmake ];
doCheck = !stdenv.isi686; # tests fail on i686
meta = with lib; {
description = "Mozilla's Universal Charset Detector C/C++ API";
mainProgram = "uchardet";
homepage = "https://www.freedesktop.org/wiki/Software/uchardet/";
license = licenses.mpl11;
maintainers = with maintainers; [ ];
platforms = with platforms; unix;
};
}