nix(refactor): Add withPath to checkedShellScript
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
, inRootDir ? false
|
||||
, redirectTixFiles ? true
|
||||
, withEnv ? null
|
||||
, withPath ? [ ]
|
||||
, withTmpDir ? false
|
||||
}: text:
|
||||
let
|
||||
@@ -114,6 +115,10 @@ let
|
||||
export PATH="$env/bin:$PATH"
|
||||
''
|
||||
|
||||
+ lib.optionalString (lib.length withPath > 0) ''
|
||||
export PATH="${lib.concatMapStrings (p: p + "/bin:") withPath}$PATH"
|
||||
''
|
||||
|
||||
+ "(${text})"
|
||||
|
||||
+ lib.optionalString withTmpDir ''
|
||||
|
||||
Reference in New Issue
Block a user