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:
@@ -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 -
|
||||
''
|
||||
|
||||
Reference in New Issue
Block a user