liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

bin.nix (226B)


      1 {
      2   writeScriptBin,
      3   lib,
      4 }:
      5 name:
      6 {
      7   runtimeInputs ? [ ],
      8 }:
      9 text:
     10 writeScriptBin name ''
     11   #!/bin/sh
     12   set -o errexit
     13   set -o nounset
     14   set -o pipefail
     15 
     16   export PATH="${lib.makeBinPath runtimeInputs}:$PATH"
     17   ${text}
     18 ''