depot/third_party/nixpkgs/pkgs/development/libraries/libuchardet/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

26 lines
719 B
Nix

{ lib, stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
pname = "uchardet";
version = "0.0.8";
outputs = [ "bin" "out" "man" "dev" ];
src = fetchurl {
url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
sha256 = "sha256-6Xpgz8AKHBR6Z0sJe7FCKr2fp4otnOPz/cwueKNKxfA=";
};
nativeBuildInputs = [ cmake ];
doCheck = !stdenv.hostPlatform.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 = [ ];
platforms = with platforms; unix;
};
}