feat(legacy): +writeDash +helpers
This commit is contained in:
5
legacy/writer/writeDash.nix
Normal file
5
legacy/writer/writeDash.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{ dash, lib, writers }: name: argsOrScript:
|
||||
if lib.isAttrs argsOrScript && !lib.isDerivation argsOrScript then
|
||||
writers.makeScriptWriter (argsOrScript // { interpreter = "${lib.getExe dash}"; }) name
|
||||
else
|
||||
writers.makeScriptWriter { interpreter = "${lib.getExe dash}"; } name argsOrScript
|
||||
Reference in New Issue
Block a user