about summary refs log tree commit diff stats
path: root/modules/by-name/ya/yambar
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-05-16 16:34:38 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-05-16 16:35:55 +0200
commit069df761e01a3473ceccf9fb20d2aeb25c814a27 (patch)
tree923f1e0facf52a3ff97d087c5788bcb59f7a63ad /modules/by-name/ya/yambar
parentflake: Remove `ragenix` input (diff)
downloadnixos-config-069df761e01a3473ceccf9fb20d2aeb25c814a27.zip
flake: Remove the `shell_library` input and its dependencies
All the remaining uses of the `sysLib` have been migrated to
`pkgs.writeShellApplication`.
Diffstat (limited to 'modules/by-name/ya/yambar')
-rw-r--r--modules/by-name/ya/yambar/module.nix10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/by-name/ya/yambar/module.nix b/modules/by-name/ya/yambar/module.nix
index 5a7b2efc..40edf978 100644
--- a/modules/by-name/ya/yambar/module.nix
+++ b/modules/by-name/ya/yambar/module.nix
@@ -9,7 +9,6 @@
 # If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>.
 {
   config,
-  sysLib,
   pkgs,
   lib,
   ...
@@ -21,12 +20,11 @@
     dependencies,
     ...
   }:
-    sysLib.writeShellScript {
+    lib.getExe (pkgs.writeShellApplication {
       inherit name;
-      src = ./scripts/${name}.sh;
-      dependencies = dependencies ++ (builtins.attrValues {inherit (pkgs) dash;});
-    }
-    + "/bin/${name}";
+      text = builtins.readFile ./scripts/${name}.sh;
+      runtimeInputs = dependencies ++ (builtins.attrValues {inherit (pkgs) dash;});
+    });
 
   mkWrapper = bin: cmd:
     pkgs.writeShellScript cmd ''