liminix

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

default.nix (215B)


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