1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:48:57 +00:00
nixpkgs/pkgs/development/tools/misc/texi2html/default.nix

35 lines
920 B
Nix
Raw Normal View History

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