nixpkgs/pkgs/by-name/li/libuchardet/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
719 B
Nix
Raw Permalink Normal View History

{ lib, stdenv, fetchurl, cmake }:
stdenv.mkDerivation rec {
2018-12-25 17:57:21 +00:00
pname = "uchardet";
2022-12-31 08:46:47 +00:00
version = "0.0.8";
2018-12-25 17:57:21 +00:00
outputs = [ "bin" "out" "man" "dev" ];
2018-12-25 17:57:21 +00:00
src = fetchurl {
url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
2022-12-31 08:46:47 +00:00
sha256 = "sha256-6Xpgz8AKHBR6Z0sJe7FCKr2fp4otnOPz/cwueKNKxfA=";
};
nativeBuildInputs = [ cmake ];
2021-02-07 12:32:57 +00:00
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/";
2018-12-25 17:57:21 +00:00
license = licenses.mpl11;
maintainers = [ ];
platforms = with platforms; unix;
};
}