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.nix26
1 files changed, 26 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..a362e8ab2bb7
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libchardet/default.nix
@@ -0,0 +1,26 @@
+{ lib, stdenv, fetchFromGitHub, perl }:
+
+stdenv.mkDerivation rec {
+  pname = "libchardet";
+  version = "1.0.6";
+
+  src = fetchFromGitHub {
+    owner = "Joungkyun";
+    repo = "libchardet";
+    rev = version;
+    sha256 = "sha256-JhEiWM3q8X+eEBHxv8k9yYOaTGoJOzI+/iFYC0gZJJs=";
+  };
+
+  nativeBuildInputs = [ perl ];
+
+  enableParallelBuilding = true;
+
+  meta = with lib; {
+    description = "Mozilla's Universal Charset Detector C/C++ API";
+    mainProgram = "chardet-config";
+    homepage = "ftp://ftp.oops.org/pub/oops/libchardet/index.html";
+    license = licenses.mpl11;
+    maintainers = [ maintainers.abbradar ];
+    platforms = platforms.unix;
+  };
+}