aboutsummaryrefslogtreecommitdiffstats
path: root/hm/soispha/pkgs/scripts
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-01-13 22:19:00 +0100
committerSoispha <soispha@vhack.eu>2024-01-13 22:19:00 +0100
commit98b5114389c6d0fc35fcddf4df0723de51e5622c (patch)
tree7c8cb85684c7e9e07b996e4fa23b99a24ce855c7 /hm/soispha/pkgs/scripts
parentbuild(treewide): Update shell library (diff)
downloadnixos-config-98b5114389c6d0fc35fcddf4df0723de51e5622c.zip
fix(treewide): Comply with the shell library's new argument names
Diffstat (limited to '')
-rw-r--r--hm/soispha/pkgs/scripts.nix27
1 files changed, 13 insertions, 14 deletions
diff --git a/hm/soispha/pkgs/scripts.nix b/hm/soispha/pkgs/scripts.nix
index 5b240eae..a1eaabbd 100644
--- a/hm/soispha/pkgs/scripts.nix
+++ b/hm/soispha/pkgs/scripts.nix
@@ -9,11 +9,11 @@
name,
path,
dependencies ? [],
- keep_path ? false,
+ keepPath ? false,
completions ? false,
}:
sysLib.writeShellScript {
- inherit name keep_path;
+ inherit name keepPath;
src = ./scripts/${path}/${name};
dependencies = dependencies ++ [pkgs.dash];
generateCompletions = completions;
@@ -23,14 +23,14 @@
path,
dependencies_system ? [],
dependencies_python ? _: [],
- keep_path ? false,
+ keepPath ? false,
}: let
src = ./scripts/${path}/${name};
dependencies =
[(pkgs.python3.withPackages (ps: dependencies_python ps))]
++ dependencies_system;
path_setting =
- if keep_path
+ if keepPath
then "--prefix PATH :"
else "--set PATH";
in
@@ -84,7 +84,7 @@
screenshot_persistent-scr = write_shell {
name = "screenshot_persistent";
path = "small_functions";
- keep_path = true;
+ keepPath = true;
dependencies = builtins.attrValues {
inherit
(pkgs)
@@ -105,7 +105,7 @@
show-scr = write_shell {
name = "show";
path = "wrappers";
- keep_path = true; # I might want to use nvim in less (and shell escapes)
+ keepPath = true; # I might want to use nvim in less (and shell escapes)
dependencies = builtins.attrValues {inherit (pkgs) less locale;};
};
nato-scr = write_python {
@@ -113,14 +113,13 @@
path = "small_functions";
dependencies_python = ps: [];
};
- neorg-scr = sysLib.writeShellScript {
+ neorg-scr = sysLib.writeShellScriptMultiPart {
name = "neorg";
- keep_path = true;
+ keepPath = true;
src = ./scripts/specific/neorg/sh;
- multi_part_base = "main";
- multi_part = true;
- multi_part_prefix = "functions";
- multi_part_names = [
+ baseName = "main";
+ cmdPrefix = "functions";
+ cmdNames = [
"add"
"context"
"dmenu"
@@ -173,7 +172,7 @@
fupdate-scr = write_shell {
name = "fupdate";
path = "apps";
- keep_path = true;
+ keepPath = true;
dependencies = builtins.attrValues {
inherit
(pkgs)
@@ -266,7 +265,7 @@
yts-scr = write_shell {
name = "yts";
path = "specific/ytcc";
- keep_path = true; # We need neovim
+ keepPath = true; # We need neovim
completions = true;
dependencies = builtins.attrValues {
inherit (pkgs) ytcc jq gawk ytc;