summaryrefslogtreecommitdiff
path: root/shell-scripts.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell-scripts.nix')
-rw-r--r--shell-scripts.nix35
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