2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, libiconv, recode }:
|
2012-08-08 00:58:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "enca";
|
2017-03-01 00:05:03 +00:00
|
|
|
version = "1.19";
|
2012-08-08 00:58:17 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://dl.cihar.com/enca/${pname}-${version}.tar.xz";
|
2017-03-01 00:05:03 +00:00
|
|
|
sha256 = "1f78jmrggv3jymql8imm5m9yc8nqjw5l99mpwki2245l8357wj1s";
|
2012-08-08 00:58:17 +01:00
|
|
|
};
|
|
|
|
|
2014-11-26 23:16:50 +00:00
|
|
|
buildInputs = [ recode libiconv ];
|
2012-08-08 00:58:17 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2012-08-08 00:58:17 +01:00
|
|
|
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.
|
|
|
|
'';
|
|
|
|
|
2017-03-01 00:05:03 +00:00
|
|
|
license = licenses.gpl2;
|
2021-01-19 21:20:11 +00:00
|
|
|
|
2012-08-08 00:58:17 +01:00
|
|
|
};
|
|
|
|
}
|