uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
51
pkgs/tools/misc/latex2html/default.nix
Normal file
51
pkgs/tools/misc/latex2html/default.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ lib, stdenv, fetchFromGitHub, makeWrapper
|
||||
, ghostscript, netpbm, perl }:
|
||||
# TODO: withTex
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "latex2html";
|
||||
version = "2022";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-a+OFBNMtP6mDqg1k9rjDLEJhZDM+zdRpPbn3aeC+Qks=";
|
||||
};
|
||||
|
||||
buildInputs = [ ghostscript netpbm perl ];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
configurePhase = ''
|
||||
./configure \
|
||||
--prefix="$out" \
|
||||
--without-mktexlsr \
|
||||
--with-texpath=$out/share/texmf/tex/latex/html
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
for p in $out/bin/{latex2html,pstoimg}; do \
|
||||
wrapProgram $p --add-flags '--tmp="''${TMPDIR:-/tmp}"'
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "LaTeX-to-HTML translator";
|
||||
longDescription = ''
|
||||
A Perl program that translates LaTeX into HTML (HyperText Markup
|
||||
Language), optionally creating separate HTML files corresponding to each
|
||||
unit (e.g., section) of the document. LaTeX2HTML proceeds by interpreting
|
||||
LaTeX (to the best of its abilities). It contains definitions from a wide
|
||||
variety of classes and packages, and users may add further definitions by
|
||||
writing Perl scripts that provide information about class/package
|
||||
commands.
|
||||
'';
|
||||
|
||||
homepage = "https://www.ctan.org/pkg/latex2html";
|
||||
|
||||
license = licenses.gpl2;
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
maintainers = with maintainers; [ yurrriq ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue