about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libuchardet
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libuchardet')
-rw-r--r--nixpkgs/pkgs/development/libraries/libuchardet/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libuchardet/default.nix b/nixpkgs/pkgs/development/libraries/libuchardet/default.nix
new file mode 100644
index 000000000000..389aa7c283f2
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libuchardet/default.nix
@@ -0,0 +1,25 @@
+{ lib, stdenv, fetchurl, cmake }:
+
+stdenv.mkDerivation rec {
+  pname = "uchardet";
+  version = "0.0.8";
+
+  outputs = [ "bin" "out" "man" "dev" ];
+
+  src = fetchurl {
+    url = "https://www.freedesktop.org/software/${pname}/releases/${pname}-${version}.tar.xz";
+    sha256 = "sha256-6Xpgz8AKHBR6Z0sJe7FCKr2fp4otnOPz/cwueKNKxfA=";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  doCheck = !stdenv.isi686; # tests fail on i686
+
+  meta = with lib; {
+    description = "Mozilla's Universal Charset Detector C/C++ API";
+    homepage = "https://www.freedesktop.org/wiki/Software/uchardet/";
+    license = licenses.mpl11;
+    maintainers = with maintainers; [ cstrahan ];
+    platforms = with platforms; unix;
+  };
+}