From 069df761e01a3473ceccf9fb20d2aeb25c814a27 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 16 May 2025 16:34:38 +0200 Subject: flake: Remove the `shell_library` input and its dependencies All the remaining uses of the `sysLib` have been migrated to `pkgs.writeShellApplication`. --- modules/by-name/ya/yambar/module.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'modules/by-name/ya') 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 . { 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 '' -- cgit 1.4.1