blob: 3b849e003616aa9c5a11bbb88443d9aeeec9d7e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{
pkgs,
config,
...
}:
with builtins; let
script-names = attrNames (readDir ./shell-scripts);
package = (
filename:
with pkgs; let
in
stdenv.mkDerivation {
name = filename;
buildCommand = ''
install -Dm755 $script $out/bin/${filename}
'';
script = substituteAll {
src = ./shell-scripts/${filename};
isExecutable = true;
inherit bash;
home = config.home.homeDirectory;
};
}
);
packages = map package script-names;
in
packages
|