mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 23:22:37 +00:00
57bccb3cb8
* treewide: http -> https sources This updates the source urls of all top-level packages from http to https where possible. * buildtorrent: fix url and tab -> spaces
29 lines
832 B
Nix
29 lines
832 B
Nix
{ stdenv, fetchurl, libiconv, recode }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "enca-${version}";
|
|
version = "1.19";
|
|
|
|
src = fetchurl {
|
|
url = "https://dl.cihar.com/enca/${name}.tar.xz";
|
|
sha256 = "1f78jmrggv3jymql8imm5m9yc8nqjw5l99mpwki2245l8357wj1s";
|
|
};
|
|
|
|
buildInputs = [ recode libiconv ];
|
|
|
|
meta = with stdenv.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.gpl2;
|
|
|
|
};
|
|
}
|