diff --git a/pkgs/development/libraries/libchardet/default.nix b/pkgs/development/libraries/libchardet/default.nix new file mode 100644 index 000000000000..f7834c56b63a --- /dev/null +++ b/pkgs/development/libraries/libchardet/default.nix @@ -0,0 +1,21 @@ +{ stdenv, fetchurl, perl }: + +stdenv.mkDerivation rec { + name = "libchardet-1.0.4"; + + src = fetchurl { + url = "ftp://ftp.oops.org/pub/oops/libchardet/${name}.tar.bz2"; + sha256 = "0cvwba4la25qw70ap8jd5r743a9jshqd26nnbh5ph68zj1imlgzl"; + }; + + nativeBuildInputs = [ perl ]; + + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "Mozilla's Universal Charset Detector C/C++ API"; + homepage = ftp://ftp.oops.org/pub/oops/libchardet/index.html; + license = licenses.mpl11; + maintainers = [ maintainers.abbradar ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 19ce6712f3ce..c12dff9825ea 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5251,6 +5251,8 @@ let libchamplain_0_6 = callPackage ../development/libraries/libchamplain/0.6.nix {}; + libchardet = callPackage ../development/libraries/libchardet { }; + libchop = callPackage ../development/libraries/libchop { }; libcm = callPackage ../development/libraries/libcm { };