diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2022-11-29 11:29:34 +0000 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2022-11-29 11:29:34 +0000 |
| commit | 57788ab135d9a0aa0a7320b9cf03de5505f812d8 (patch) | |
| tree | 10fefd7962ec0077e1ea9544b7f5f74922b8548b /shell-scripts.nix | |
| parent | 066408ccd8b5079b52d54bb0c99aeb12771cde06 (diff) | |
add shell scripts
Diffstat (limited to 'shell-scripts.nix')
| -rw-r--r-- | shell-scripts.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/shell-scripts.nix b/shell-scripts.nix new file mode 100644 index 0000000..5cec1eb --- /dev/null +++ b/shell-scripts.nix @@ -0,0 +1,12 @@ +{pkgs, ...}: +with builtins; let + script-names = attrNames (readDir ./shell-scripts); + package = ( + filename: let + contents = readFile ./shell-scripts/${filename}; + in + pkgs.writeShellScriptBin filename contents + ); + packages = map package script-names; +in + packages |
