1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 18:21:07 +01:00
Files
niveum/packages/man-pdf.nix

11 lines
209 B
Nix

{
writers,
ghostscript,
man-db,
gnused,
}:
writers.writeDashBin "man-pdf" ''
set -efu
${man-db}/bin/man -t "$@" | ${ghostscript}/bin/ps2pdf - "$(echo "$*" | ${gnused}/bin/sed 's/\s\+/_/g').pdf"
''