2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl, gettext, buildPackages }:
|
2009-10-28 14:06:56 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-26 20:16:43 +00:00
|
|
|
pname = "texi2html";
|
|
|
|
version = "5.0";
|
2009-09-10 16:57:42 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-26 20:16:43 +00:00
|
|
|
url = "mirror://savannah/texi2html/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "1yprv64vrlcbksqv25asplnjg07mbq38lfclp1m5lj8cw878pag8";
|
2009-09-10 16:57:42 +00:00
|
|
|
};
|
|
|
|
|
2020-09-04 08:24:28 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ gettext perl ];
|
2019-08-26 20:16:43 +00:00
|
|
|
buildInputs = [ perl ];
|
2009-09-10 16:57:42 +00:00
|
|
|
|
2020-09-04 08:24:28 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs separated_to_hash.pl
|
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
|
2020-09-04 08:24:28 +00:00
|
|
|
for f in $out/bin/*; do
|
|
|
|
substituteInPlace $f --replace "${buildPackages.perl}" "${perl}"
|
|
|
|
done
|
2019-08-26 20:16:43 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2009-09-10 16:57:42 +00:00
|
|
|
description = "Perl script which converts Texinfo source files to HTML output";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.nongnu.org/texi2html/";
|
2019-08-26 20:16:43 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.marcweber ];
|
|
|
|
platforms = platforms.unix;
|
2009-09-10 16:57:42 +00:00
|
|
|
};
|
|
|
|
}
|