2021-01-15 01:19:50 -08:00
|
|
|
{ lib, stdenv, fetchurl, python3, perl, intltool, flex, texinfo, libiconv, libintl }:
|
2010-10-20 06:05:49 -07:00
|
|
|
|
2019-10-22 01:03:49 -07:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "recode";
|
2020-11-15 07:50:00 -08:00
|
|
|
version = "3.7.8";
|
2010-10-20 06:05:49 -07:00
|
|
|
|
2019-10-22 01:03:49 -07: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-15 07:50:00 -08:00
|
|
|
sha256 = "19yg20z1smj9kag1axgvc4s4kd6jmw75h0pa8xqxl3xqqyn5rdsg";
|
2010-10-20 06:05:49 -07:00
|
|
|
};
|
|
|
|
|
2019-11-14 04:20:35 -08:00
|
|
|
nativeBuildInputs = [ python3 python3.pkgs.cython perl intltool flex texinfo libiconv ];
|
2018-03-25 21:36:14 -07:00
|
|
|
buildInputs = [ libintl ];
|
2013-03-06 01:07:54 -08:00
|
|
|
|
2019-10-22 01:03:49 -07:00
|
|
|
doCheck = true;
|
2013-03-06 01:07:54 -08:00
|
|
|
|
2010-10-20 06:05:49 -07:00
|
|
|
meta = {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/rrthomas/recode";
|
2010-10-20 06:05:49 -07:00
|
|
|
description = "Converts files between various character sets and usages";
|
2021-01-15 01:19:50 -08:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
license = lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with lib.maintainers; [ jcumming ];
|
2010-10-20 06:05:49 -07:00
|
|
|
};
|
|
|
|
}
|