nixpkgs/pkgs/tools/text/recode/default.nix

26 lines
843 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchurl, python3, perl, intltool, flex, texinfo, libiconv, libintl }:
stdenv.mkDerivation rec {
pname = "recode";
2021-08-17 19:16:58 +01:00
version = "3.7.9";
# 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";
2021-08-17 19:16:58 +01:00
sha256 = "sha256-5DIKaw9c2DfNtFT7WFQBjd+pcJEWCOHwHMLGX2M2csQ=";
};
2019-11-14 12:20:35 +00:00
nativeBuildInputs = [ python3 python3.pkgs.cython perl intltool flex texinfo libiconv ];
buildInputs = [ libintl ];
2013-03-06 09:07:54 +00:00
doCheck = true;
2013-03-06 09:07:54 +00:00
meta = {
homepage = "https://github.com/rrthomas/recode";
description = "Converts files between various character sets and usages";
2021-01-15 09:19:50 +00:00
platforms = lib.platforms.unix;
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ jcumming ];
};
}