1{ lib, stdenv, fetchurl, python3, perl, intltool, flex, texinfo, libiconv, libintl }:
2
3stdenv.mkDerivation rec {
4 pname = "recode";
5 version = "3.7.12";
6
7 # Use official tarball, avoid need to bootstrap/generate build system
8 src = fetchurl {
9 url = "https://github.com/rrthomas/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
10 hash = "sha256-TbHJB28E26oVlyb1AAhH5eWoOuyOXGT4ygQ4P2zaEtU=";
11 };
12
13 nativeBuildInputs = [ python3 python3.pkgs.cython perl intltool flex texinfo libiconv ];
14 buildInputs = [ libintl ];
15
16 enableParallelBuilding = true;
17
18 doCheck = true;
19
20 meta = {
21 homepage = "https://github.com/rrthomas/recode";
22 description = "Converts files between various character sets and usages";
23 changelog = "https://github.com/rrthomas/recode/raw/v${version}/NEWS";
24 platforms = lib.platforms.unix;
25 license = with lib.licenses; [ lgpl3Plus gpl3Plus ];
26 maintainers = with lib.maintainers; [ jcumming ];
27 };
28}