From 58e84ff53ceaf415e2a598c0122da526a27c3f38 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Thu, 23 Apr 2026 04:00:13 +0530 Subject: passing paths to the the executables used in the script --- modules/scripts/default.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) (limited to 'modules/scripts/default.nix') diff --git a/modules/scripts/default.nix b/modules/scripts/default.nix index 9c7bba8..b4a6106 100644 --- a/modules/scripts/default.nix +++ b/modules/scripts/default.nix @@ -45,7 +45,14 @@ let }; file-preview = { path = ./file-preview.sh; - env = { }; + env = { + BAT = lib.getExe pkgs.bat; + FILE = lib.getExe pkgs.file; + FFMPEG = lib.getExe' pkgs.ffmpeg-full "ffmpeg"; + FFPROBE = lib.getExe' pkgs.ffmpeg-full "ffprobe"; + OUCH = lib.getExe pkgs.ouch; + PDFTOPPM = lib.getExe' pkgs.poppler-utils "pdftoppm"; + }; deps = [ pkgs.bat pkgs.file @@ -55,7 +62,16 @@ let ]; conditions = [ { - option = "tools.fzf.enable"; + option = "tools.ffmpeg.enable"; + value = true; + } + { + option = "tools.ouch.enable"; + value = true; + } + { + # not a dependency + option = "tools.zathura.enable"; value = true; } ]; -- cgit v1.2.3