From 3bed4d44d514d1fbd72da9d801410d2bf158a9bd Mon Sep 17 00:00:00 2001 From: Nikolay Amiantov Date: Sun, 14 Sep 2014 22:33:43 +0400 Subject: [PATCH] libchardet: added package --- .../libraries/libchardet/default.nix | 21 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 pkgs/development/libraries/libchardet/default.nix 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 { };