nixpkgs/pkgs/tools/text/enca/default.nix

30 lines
901 B
Nix
Raw Normal View History

2013-12-18 13:41:35 +00:00
{ stdenv, fetchurl, libiconvOrNull, recode }:
2012-08-08 00:58:17 +01:00
stdenv.mkDerivation rec {
2013-12-18 13:37:12 +00:00
name = "enca-1.15";
2012-08-08 00:58:17 +01:00
src = fetchurl {
url = "http://dl.cihar.com/enca/${name}.tar.bz2";
2013-12-18 13:37:12 +00:00
sha256 = "1iibfl2s420x7bc1hvxr1ys4cpz579brg2m2ln4rp677azmrr8mv";
2012-08-08 00:58:17 +01:00
};
2013-12-18 13:41:35 +00:00
buildInputs = [ recode libiconvOrNull ];
2012-08-08 00:58:17 +01:00
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 = stdenv.lib.licenses.gpl2;
2012-08-08 00:58:17 +01:00
platforms = stdenv.lib.platforms.all;
};
}