From dd053dc7d137c22ef83abb88205d91fb63c9b661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 25 May 2026 16:11:16 -0700 Subject: [PATCH] enca: 1.19 -> 1.22 Diff: https://github.com/Project-OSS-Revival/enca/compare/1.19...1.22 Changelog: https://github.com/Project-OSS-Revival/enca/blob/1.22/ChangeLog --- pkgs/by-name/en/enca/package.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/en/enca/package.nix b/pkgs/by-name/en/enca/package.nix index 72ca0eb3f2a1..04bd061c095a 100644 --- a/pkgs/by-name/en/enca/package.nix +++ b/pkgs/by-name/en/enca/package.nix @@ -1,18 +1,20 @@ { lib, stdenv, - fetchurl, + fetchFromGitHub, libiconv, recode, }: stdenv.mkDerivation (finalAttrs: { pname = "enca"; - version = "1.19"; + version = "1.22"; - src = fetchurl { - url = "https://dl.cihar.com/enca/enca-${finalAttrs.version}.tar.xz"; - sha256 = "1f78jmrggv3jymql8imm5m9yc8nqjw5l99mpwki2245l8357wj1s"; + src = fetchFromGitHub { + owner = "Project-OSS-Revival"; + repo = "enca"; + tag = finalAttrs.version; + hash = "sha256-TMWAGT3iY/ND8pB4THU4PbBGpb8EfT6z+peT8T6mp4o="; }; buildInputs = [ @@ -21,8 +23,9 @@ stdenv.mkDerivation (finalAttrs: { ]; meta = { + changelog = "https://github.com/Project-OSS-Revival/enca/blob/${finalAttrs.src.tag}/ChangeLog"; description = "Detects the encoding of text files and reencodes them"; - + homepage = "https://cihar.com/software/enca/"; longDescription = '' Enca detects the encoding of text files, on the basis of knowledge of their language. It can also convert them to other encodings,