45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{ pkgs }:
|
|
|
|
pkgs.symlinkJoin {
|
|
name = "tb-scripts";
|
|
meta = {
|
|
description = "Custom utility scripts for TB - available on all systems";
|
|
maintainers = [ ];
|
|
};
|
|
paths = [
|
|
(pkgs.writeShellApplication {
|
|
name = ",jq_reformat";
|
|
runtimeInputs = [ pkgs.jq ];
|
|
text = builtins.readFile ./jq_reformat.sh;
|
|
})
|
|
|
|
(pkgs.writers.writePython3Bin ",rename_lower" {
|
|
libraries = [ ];
|
|
} (builtins.readFile ./rename_lower.py))
|
|
|
|
(pkgs.writeShellApplication {
|
|
name = ",zipdir";
|
|
runtimeInputs = [ pkgs.zip ];
|
|
text = builtins.readFile ./zipdir;
|
|
})
|
|
|
|
(pkgs.writeShellApplication {
|
|
name = ",split-1G";
|
|
runtimeInputs = [ pkgs.coreutils ];
|
|
text = builtins.readFile ./split-1G;
|
|
})
|
|
|
|
(pkgs.writeShellApplication {
|
|
name = ",pushover-send";
|
|
runtimeInputs = [ pkgs.curl ];
|
|
text = builtins.readFile ./pushover-send;
|
|
})
|
|
|
|
(pkgs.writeShellApplication {
|
|
name = ",xz";
|
|
runtimeInputs = [ pkgs.xz ];
|
|
text = builtins.readFile ./xz;
|
|
})
|
|
];
|
|
}
|