1
0
mirror of https://github.com/kmein/niveum synced 2026-03-18 19:11:08 +01:00

use lib.getExe and lib.getExe' in packaged scripts

Replace all ${pkg}/bin/name patterns with:
- lib.getExe pkg (for main executables: curl, jq, gnused, ffmpeg, etc.)
- lib.getExe' pkg "name" (for specific binaries: coreutils, util-linux, etc.)
This commit is contained in:
2026-02-17 21:35:28 +01:00
parent 4fc29ff0fe
commit e67d6d7df2
12 changed files with 50 additions and 149 deletions

View File

@@ -1,12 +1,13 @@
# Render a GitHub repo's README.md as a man page
{
lib,
writers,
curl,
pandoc,
man,
}:
writers.writeDashBin "readme" ''
${curl}/bin/curl -sSL "https://raw.githubusercontent.com/$*/master/README.md" \
| ${pandoc}/bin/pandoc -f gfm -t man -s \
| ${man}/bin/man -l -
${lib.getExe curl} -sSL "https://raw.githubusercontent.com/$*/master/README.md" \
| ${lib.getExe pandoc} -f gfm -t man -s \
| ${lib.getExe man} -l -
''