mirror of
https://github.com/kmein/niveum
synced 2026-03-22 12:51:08 +01:00
feat(packages): package tolino-screensaver, fzf-wrappers, dirmir
This commit is contained in:
@@ -1,6 +1,17 @@
|
||||
{ writeShellScriptBin, texlive }:
|
||||
writeShellScriptBin "man-pdf" ''
|
||||
for program in "$@"; do
|
||||
man -t "$program" | ${texlive.combined.scheme-basic}/bin/ps2pdf
|
||||
done
|
||||
{ writeShellScriptBin, ghostscript, man }:
|
||||
let
|
||||
name = "man-pdf";
|
||||
in writeShellScriptBin name ''
|
||||
if [ $# -eq 1 ]; then
|
||||
man_entry="$1"
|
||||
elif [ $# -eq 2 ]; then
|
||||
man_page="$1"
|
||||
man_entry="$2"
|
||||
else
|
||||
echo >/dev/stderr "Usage: ${name} [MAN-PAGE] ENTRY"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "${man}/bin/man "''${man_page:-}" "$man_entry" | ${ghostscript}/bin/ps2pdf - "$man_entry.pdf""
|
||||
${man}/bin/man "''${man_page:-}" "$man_entry" | ${ghostscript}/bin/ps2pdf - "$man_entry.pdf"
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user