1{ lib, stdenv, fetchFromGitHub, perl }:
2
3stdenv.mkDerivation rec {
4 pname = "libchardet";
5 version = "1.0.6";
6
7 src = fetchFromGitHub {
8 owner = "Joungkyun";
9 repo = "libchardet";
10 rev = version;
11 sha256 = "sha256-JhEiWM3q8X+eEBHxv8k9yYOaTGoJOzI+/iFYC0gZJJs=";
12 };
13
14 nativeBuildInputs = [ perl ];
15
16 enableParallelBuilding = true;
17
18 meta = with lib; {
19 description = "Mozilla's Universal Charset Detector C/C++ API";
20 homepage = "ftp://ftp.oops.org/pub/oops/libchardet/index.html";
21 license = licenses.mpl11;
22 maintainers = [ maintainers.abbradar ];
23 platforms = platforms.unix;
24 };
25}