summaryrefslogtreecommitdiff
path: root/shell-scripts.nix
blob: 5cec1eb2e918e4e718ca454bf5f4c3639b1799a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
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