From f3eead7db0c00fd917b6f26bb8389af8f7bf516a Mon Sep 17 00:00:00 2001 From: Mike Vink <> Date: Wed, 12 Apr 2023 17:10:35 +0200 Subject: add noice --- shell-scripts.nix | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'shell-scripts.nix') 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 -- cgit v1.2.3