АБ
Size: a a a
АБ
М
М
MG
MG
АБ
АБ
АБ
АБ
runCommand "your-script-wrapped" { buildInputs = [ makeWrapper ]; } "mkdir -p $out/bin; makeWrapper ${./path/to/your-script.sh} $out/bin/your-script --prefix PATH : ${lib.makeBinPath [ foo bar baz ]}";
MG
MG
АБ
АБ
АБ
evalLiteral = scope: path: builtins.scopedImport scope (builtins.toFile "eval-literal.nix" "''${builtins.readFile path}''")
АБ
writeShellScriptBin "foo" (evalLiteral ./foo.sh)
АБ
foo.sh
можно использовать ${}
АБ
АБ
#!${bash}/bin/bash
${hello}/bin/hello
АБ