feat(legacy): +writeDash +helpers

This commit is contained in:
2025-11-03 18:51:38 +00:00
parent 4ec1f7dc98
commit ff95cb447a
12 changed files with 117 additions and 65 deletions
+5
View 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