nixpkgs/pkgs/tools/text/recode/default.nix
Will Dietz 762a88d78b recode: 3.7-gitrev -> 3.7.4, new home (#68045)
* recode: pname-ify

* recode: 3.7-* -> 3.7.2, new home

gnu homepage still exists (for now),
but links to the github repo we switch to :).

* recode: use pre-generated tarball to avoid gen, fix

* recode: 3.7.2 -> 3.7.4

https://github.com/rrthomas/recode/blob/v3.7.4/NEWS
(3.7.3 notes as well)
2019-10-22 10:03:49 +02:00

26 lines
855 B
Nix

{ stdenv, fetchurl, python, perl, intltool, flex, texinfo, libiconv, libintl }:
stdenv.mkDerivation rec {
pname = "recode";
version = "3.7.4";
# 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";
sha256 = "0j9rjkgx4r8nah90d2vbi92k33gfmgaqlj72z1ni0vsiccpcgfc8";
};
nativeBuildInputs = [ python python.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";
platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.gpl2Plus;
maintainers = with stdenv.lib.maintainers; [ jcumming ];
};
}