From 86629f7c7ff72d45b51eba3753423cb3dede822a Mon Sep 17 00:00:00 2001 From: Charles Strahan Date: Sun, 21 Dec 2014 23:35:31 -0500 Subject: [PATCH] libuchardet: new package Yet another C wrapper for Mozilla's Universal Charset Detector C++ API. --- .../libraries/libuchardet/default.nix | 23 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/libraries/libuchardet/default.nix diff --git a/pkgs/development/libraries/libuchardet/default.nix b/pkgs/development/libraries/libuchardet/default.nix new file mode 100644 index 000000000000..86428e08c475 --- /dev/null +++ b/pkgs/development/libraries/libuchardet/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchFromGitHub, cmake }: + +stdenv.mkDerivation rec { + name = "libuchardet-${version}"; + + version = "0.0.1"; + + src = fetchFromGitHub { + owner = "BYVoid"; + repo = "uchardet"; + rev = "69b7133995e4ee260b093323c57a7f8c6c6803b8"; + sha256 = "0yqrc9a7wxsh2fvigjppjp55v4r1q8p40yh048xsvl3kly2rkqy9"; + }; + + buildInputs = [ cmake ]; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b89dd6295722..1fbe58aeb50f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5715,6 +5715,8 @@ let libchardet = callPackage ../development/libraries/libchardet { }; + libuchardet = callPackage ../development/libraries/libuchardet { }; + libchop = callPackage ../development/libraries/libchop { }; libcm = callPackage ../development/libraries/libcm { };