about summary refs log tree commit diff
path: root/pkgs/tools/text/enca/default.nix
blob: f3098a22f41a647102553a169ae837684e01513d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, stdenv, fetchurl, libiconv, recode }:

stdenv.mkDerivation rec {
  pname = "enca";
  version = "1.19";

  src = fetchurl {
    url = "https://dl.cihar.com/enca/${pname}-${version}.tar.xz";
    sha256 = "1f78jmrggv3jymql8imm5m9yc8nqjw5l99mpwki2245l8357wj1s";
  };

  buildInputs = [ recode libiconv ];

  meta = with lib; {
    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 = licenses.gpl2Only;

  };
}