2024-02-29 20:09:43 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, python3Packages
|
|
|
|
, flex
|
|
|
|
, texinfo
|
|
|
|
, libiconv
|
|
|
|
, libintl
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "recode";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "3.7.14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Use official tarball, avoid need to bootstrap/generate build system
|
|
|
|
src = fetchurl {
|
2024-05-15 15:35:15 +00:00
|
|
|
url = "https://github.com/rrthomas/recode/releases/download/v${finalAttrs.version}/recode-${finalAttrs.version}.tar.gz";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-eGqv1USFGisTsKN36sFQD4IM5iYVzMLmMLUB53Q7nzM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeBuildInputs = [ python3Packages.python flex texinfo libiconv ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libintl ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
|
|
cython
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/rrthomas/recode";
|
|
|
|
description = "Converts files between various character sets and usages";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "recode";
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/rrthomas/recode/raw/v${finalAttrs.version}/NEWS";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2022-03-05 16:20:37 +00:00
|
|
|
license = with lib.licenses; [ lgpl3Plus gpl3Plus ];
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ jcumming ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
})
|