about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libchardet
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libchardet')
-rw-r--r--nixpkgs/pkgs/development/libraries/libchardet/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libchardet/default.nix b/nixpkgs/pkgs/development/libraries/libchardet/default.nix
new file mode 100644
index 000000000000..168217678c0a
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libchardet/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, fetchFromGitHub, perl }:
+
+stdenv.mkDerivation rec {
+  pname = "libchardet";
+  version = "1.0.5";
+
+  src = fetchFromGitHub {
+    owner = "Joungkyun";
+    repo = "libchardet";
+    rev = version;
+    sha256 = "0c1k5hf3ssh3cm72w2zpy5k73vhy1gyq5s9rqdawqqa4al8syyvn";
+  };
+
+  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 ];
+    platforms = platforms.unix;
+  };
+}