2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, python3, perl, intltool, flex, texinfo, libiconv, libintl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "recode";
|
2020-11-21 19:51:51 +00:00
|
|
|
version = "3.7.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Use official tarball, avoid need to bootstrap/generate build system
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/rrthomas/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
|
2020-11-21 19:51:51 +00:00
|
|
|
sha256 = "19yg20z1smj9kag1axgvc4s4kd6jmw75h0pa8xqxl3xqqyn5rdsg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ python3 python3.pkgs.cython perl intltool flex texinfo libiconv ];
|
|
|
|
buildInputs = [ libintl ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/rrthomas/recode";
|
|
|
|
description = "Converts files between various character sets and usages";
|
2021-01-15 22:18:51 +00:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [ jcumming ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|