feat(nix/getBins): add getBins

This is a simple-stupid “unix import system” for nix, for referencing
binaries in `/bin/` by their name and lifting them to a Nix attrset.

Allows for simple aliasing of executable names.

Change-Id: Ifa23cb377201c3b08050c5026e9751e736afaf56
Reviewed-on: https://cl.tvl.fyi/c/depot/+/664
Reviewed-by: tazjin <mail@tazj.in>
This commit is contained in:
Profpatsch 2020-06-27 23:14:41 +02:00
parent 15335e7b3d
commit 98a990c6a6
5 changed files with 93 additions and 0 deletions

View file

@ -132,6 +132,7 @@ let
tree
which
writeScript
writeScriptBin
writeShellScript
writeShellScriptBin
writeText