mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat: fix secrets permissions, move ./packages to flake outputs
This commit is contained in:
10
packages/man-pdf.nix
Normal file
10
packages/man-pdf.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
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"
|
||||
''
|
||||
Reference in New Issue
Block a user