1{ lib, stdenv, fetchurl, python3, perl, intltool, flex, texinfo, libiconv, libintl }:
2
3stdenv.mkDerivation rec {
4 pname = "recode";
5 version = "3.7.9";
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 sha256 = "sha256-5DIKaw9c2DfNtFT7WFQBjd+pcJEWCOHwHMLGX2M2csQ=";
11 };
12
13 nativeBuildInputs = [ python3 python3.pkgs.cython perl intltool flex texinfo libiconv ];
14 buildInputs = [ libintl ];
15
16 doCheck = true;
17
18 meta = {
19 homepage = "https://github.com/rrthomas/recode";
20 description = "Converts files between various character sets and usages";
21 platforms = lib.platforms.unix;
22 license = lib.licenses.gpl2Plus;
23 maintainers = with lib.maintainers; [ jcumming ];
24 };
25}