Skip to content

Commit

Permalink
feat: add script-bash
Browse files Browse the repository at this point in the history
  • Loading branch information
GTrunSec committed Jul 25, 2023
1 parent 404c6da commit 15aee9c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
5 changes: 4 additions & 1 deletion cells/tasks/runScriptWithEnv.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ makeScript {
};
searchPaths.bin = [nixpkgs.hello];
searchPaths.source = [];
entrypoint = "hello --help echo $a";
entrypoint = ''
hello --help
echo $a
'';
}
1 change: 1 addition & 0 deletions cells/tasks/script-bash.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
echo "Hello World"
6 changes: 6 additions & 0 deletions cells/tasks/script-bash.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
makeScript {
name = "runScriptWithEnv";
searchPaths.bin = [nixpkgs.hello];
searchPaths.source = [];
entrypoint = ./script-bash.bash;
}
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 15aee9c

Please sign in to comment.