summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorJan Malakhovski <oxij@oxij.org>2012-08-08 03:58:17 +0400
committerJan Malakhovski <oxij@oxij.org>2012-08-08 03:58:17 +0400
commit179b1bd2943edb2be18c67813e1f4af7dd21cf87 (patch)
treef1517fa6e44887c1c8ef12e4f5077a2068094736 /pkgs/tools
parentda7408e105d605596ac926dd990d2c2e7aee2bc8 (diff)
downloadnixpkgs-179b1bd2943edb2be18c67813e1f4af7dd21cf87.tar
nixpkgs-179b1bd2943edb2be18c67813e1f4af7dd21cf87.tar.gz
nixpkgs-179b1bd2943edb2be18c67813e1f4af7dd21cf87.tar.bz2
nixpkgs-179b1bd2943edb2be18c67813e1f4af7dd21cf87.tar.lz
nixpkgs-179b1bd2943edb2be18c67813e1f4af7dd21cf87.tar.xz
nixpkgs-179b1bd2943edb2be18c67813e1f4af7dd21cf87.tar.zst
nixpkgs-179b1bd2943edb2be18c67813e1f4af7dd21cf87.zip
Add package enca 1.13 to tools/text
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/text/enca/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/tools/text/enca/default.nix b/pkgs/tools/text/enca/default.nix
new file mode 100644
index 00000000000..ce1c7401a4e
--- /dev/null
+++ b/pkgs/tools/text/enca/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, libiconv ? null }:
+
+stdenv.mkDerivation rec {
+  name = "enca-1.13";
+
+  src = fetchurl {
+    url = "http://dl.cihar.com/enca/${name}.tar.bz2";
+    sha256 = "6c091455d524b3ddae3533fe9bb375092f60ad6fe252e0777c873bd7869c7432";
+  };
+
+  buildInputs = (stdenv.lib.optional (libiconv != null) libiconv);
+
+  meta = {
+    homepage = http://freecode.com/projects/enca;
+    description = "Detects the encoding of text files and reencodes them";
+
+    longDescription = ''
+        Enca detects the encoding of text files, on the basis of knowledge
+        of their language. It can also convert them to other encodings,
+        allowing you to recode files without knowing their current encoding.
+        It supports most of Central and East European languages, and a few
+        Unicode variants, independently on language.
+    '';
+
+    license = "GPLv2";
+
+    platforms = stdenv.lib.platforms.all;
+  };
+}