summary refs log tree commit diff
path: root/pkgs/development/libraries/libuchardet/default.nix
blob: 52bc0ac5cfd4ccac436aa5797682a684a84179d1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, fetchFromGitHub, cmake }:

stdenv.mkDerivation rec {
  name = "libuchardet-${version}";

  version = "0.0.5";

  src = fetchFromGitHub {
    owner  = "BYVoid";
    repo   = "uchardet";
    rev    = "v${version}";
    sha256 = "0rkym5bhq3hn7623fy0fggw0qaghha71k8bi41ywqd2lchpahrrm";
  };

  buildInputs = [ cmake ];

  doCheck = false; # fails all the tests (ctest)

  meta = with stdenv.lib; {
    description = "Mozilla's Universal Charset Detector C/C++ API";
    homepage    = https://www.byvoid.com/zht/project/uchardet;
    license     = licenses.mpl11;
    maintainers = with maintainers; [ cstrahan ];
    platforms = with platforms; unix;
  };
}