2023-11-19 22:30:45 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, python3Packages
|
|
|
|
, flex
|
|
|
|
, texinfo
|
|
|
|
, libiconv
|
|
|
|
, libintl
|
|
|
|
}:
|
2010-10-20 13:05:49 +00:00
|
|
|
|
2024-04-27 12:53:06 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-10-22 08:03:49 +00:00
|
|
|
pname = "recode";
|
2023-11-19 22:30:45 +00:00
|
|
|
version = "3.7.14";
|
2010-10-20 13:05:49 +00:00
|
|
|
|
2019-10-22 08:03:49 +00:00
|
|
|
# Use official tarball, avoid need to bootstrap/generate build system
|
|
|
|
src = fetchurl {
|
2024-04-27 12:53:06 +00:00
|
|
|
url = "https://github.com/rrthomas/recode/releases/download/v${finalAttrs.version}/recode-${finalAttrs.version}.tar.gz";
|
2023-11-19 22:30:45 +00:00
|
|
|
hash = "sha256-eGqv1USFGisTsKN36sFQD4IM5iYVzMLmMLUB53Q7nzM=";
|
2010-10-20 13:05:49 +00:00
|
|
|
};
|
|
|
|
|
2023-11-19 22:30:45 +00:00
|
|
|
nativeBuildInputs = [ python3Packages.python flex texinfo libiconv ];
|
|
|
|
|
2018-03-26 04:36:14 +00:00
|
|
|
buildInputs = [ libintl ];
|
2013-03-06 09:07:54 +00:00
|
|
|
|
2022-02-25 14:11:15 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2019-10-22 08:03:49 +00:00
|
|
|
doCheck = true;
|
2013-03-06 09:07:54 +00:00
|
|
|
|
2023-11-19 22:30:45 +00:00
|
|
|
nativeCheckInputs = with python3Packages; [
|
|
|
|
cython
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2010-10-20 13:05:49 +00:00
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/rrthomas/recode";
|
2010-10-20 13:05:49 +00:00
|
|
|
description = "Converts files between various character sets and usages";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "recode";
|
2024-04-27 12:53:06 +00:00
|
|
|
changelog = "https://github.com/rrthomas/recode/raw/v${finalAttrs.version}/NEWS";
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2022-02-25 14:11:15 +00:00
|
|
|
license = with lib.licenses; [ lgpl3Plus gpl3Plus ];
|
2021-01-15 09:19:50 +00:00
|
|
|
maintainers = with lib.maintainers; [ jcumming ];
|
2010-10-20 13:05:49 +00:00
|
|
|
};
|
2024-04-27 12:53:06 +00:00
|
|
|
})
|