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

26 lines
858 B
Nix
Raw Normal View History

2019-11-14 12:20:35 +00:00
{ stdenv, fetchurl, python3, perl, intltool, flex, texinfo, libiconv, libintl }:
stdenv.mkDerivation rec {
pname = "recode";
2019-11-14 12:20:35 +00:00
version = "3.7.6";
# 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";
2019-11-14 12:20:35 +00:00
sha256 = "0m59sd1ca0zw1aydpc3m8sw03nc885knmccqryg7byzmqs585ia6";
};
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";
platforms = stdenv.lib.platforms.unix;
2013-03-05 22:30:46 +00:00
license = stdenv.lib.licenses.gpl2Plus;
maintainers = with stdenv.lib.maintainers; [ jcumming ];
};
}