diff options
| author | Mike Vink <> | 2023-04-12 17:10:35 +0200 |
|---|---|---|
| committer | Mike Vink <> | 2023-04-12 17:10:54 +0200 |
| commit | f3eead7db0c00fd917b6f26bb8389af8f7bf516a (patch) | |
| tree | 172bb0094a8564f95188b9c061f4df6384881acd /shell-scripts.nix | |
| parent | f0c15bc94b5e557395e21cc18fe5284a1ff9a2d8 (diff) | |
add noice
Diffstat (limited to 'shell-scripts.nix')
| -rw-r--r-- | shell-scripts.nix | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/shell-scripts.nix b/shell-scripts.nix index 32d77d0..3b849e0 100644 --- a/shell-scripts.nix +++ b/shell-scripts.nix @@ -1,23 +1,28 @@ -{pkgs, config, ...}: +{ + pkgs, + config, + ... +}: with builtins; let script-names = attrNames (readDir ./shell-scripts); package = ( - filename: with pkgs; let - in - stdenv.mkDerivation { - name = filename; + filename: + with pkgs; let + in + stdenv.mkDerivation { + name = filename; - buildCommand = '' - install -Dm755 $script $out/bin/${filename} - ''; + buildCommand = '' + install -Dm755 $script $out/bin/${filename} + ''; - script = substituteAll { - src = ./shell-scripts/${filename}; - isExecutable = true; - inherit bash; - home = config.home.homeDirectory; - }; - } + script = substituteAll { + src = ./shell-scripts/${filename}; + isExecutable = true; + inherit bash; + home = config.home.homeDirectory; + }; + } ); packages = map package script-names; in |
