Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 35 lines 942 B view raw
1{ lib, stdenv, fetchurl, perl, gettext, buildPackages }: 2 3stdenv.mkDerivation rec { 4 pname = "texi2html"; 5 version = "5.0"; 6 7 src = fetchurl { 8 url = "mirror://savannah/texi2html/${pname}-${version}.tar.bz2"; 9 sha256 = "1yprv64vrlcbksqv25asplnjg07mbq38lfclp1m5lj8cw878pag8"; 10 }; 11 12 strictDeps = true; 13 14 nativeBuildInputs = [ gettext perl ]; 15 buildInputs = [ perl ]; 16 17 postPatch = '' 18 patchShebangs separated_to_hash.pl 19 ''; 20 21 postInstall = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' 22 for f in $out/bin/*; do 23 substituteInPlace $f --replace "${buildPackages.perl}" "${perl}" 24 done 25 ''; 26 27 meta = with lib; { 28 description = "Perl script which converts Texinfo source files to HTML output"; 29 mainProgram = "texi2html"; 30 homepage = "https://www.nongnu.org/texi2html/"; 31 license = licenses.gpl2; 32 maintainers = [ maintainers.marcweber ]; 33 platforms = platforms.unix; 34 }; 35}