nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 libiconv,
6 recode,
7}:
8
9stdenv.mkDerivation rec {
10 pname = "enca";
11 version = "1.19";
12
13 src = fetchurl {
14 url = "https://dl.cihar.com/enca/${pname}-${version}.tar.xz";
15 sha256 = "1f78jmrggv3jymql8imm5m9yc8nqjw5l99mpwki2245l8357wj1s";
16 };
17
18 buildInputs = [
19 recode
20 libiconv
21 ];
22
23 meta = {
24 description = "Detects the encoding of text files and reencodes them";
25
26 longDescription = ''
27 Enca detects the encoding of text files, on the basis of knowledge
28 of their language. It can also convert them to other encodings,
29 allowing you to recode files without knowing their current encoding.
30 It supports most of Central and East European languages, and a few
31 Unicode variants, independently on language.
32 '';
33
34 license = lib.licenses.gpl2Only;
35
36 };
37}