Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 52 lines 980 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 perl, 6 gettext, 7 versionCheckHook, 8 buildPackages, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 pname = "texi2html"; 13 version = "5.0"; 14 15 src = fetchurl { 16 url = "mirror://savannah/texi2html/texi2html-${finalAttrs.version}.tar.bz2"; 17 hash = "sha256-6KmLDuIMSVpquJQ5igZe9YAnLb1aFbGxnovRvInZ+fo="; 18 }; 19 20 strictDeps = true; 21 22 nativeBuildInputs = [ 23 perl 24 ]; 25 26 buildInputs = [ 27 gettext 28 perl 29 ]; 30 31 postPatch = '' 32 patchShebangs --build separated_to_hash.pl 33 ''; 34 35 postInstall = '' 36 patchShebangs --host --update $out/bin/* 37 ''; 38 39 doInstallCheck = true; 40 nativeInstallCheckInputs = [ 41 versionCheckHook 42 ]; 43 44 meta = { 45 description = "Perl script which converts Texinfo source files to HTML output"; 46 mainProgram = "texi2html"; 47 homepage = "https://www.nongnu.org/texi2html/"; 48 license = lib.licenses.gpl3Plus; 49 maintainers = [ lib.maintainers.marcweber ]; 50 platforms = lib.platforms.unix; 51 }; 52})