diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-15 09:55:42 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-12-15 09:55:42 +0100 |
commit | 9df0353ec12a47c06a5ea459a21602c3903eae2e (patch) | |
tree | 234414163123cd7d6d27809caed71fe38178f41e | |
parent | fix(pkgs/stamp): Streamline and update to work with reuse v5.0.x (diff) | |
download | nixos-config-9df0353ec12a47c06a5ea459a21602c3903eae2e.tar.gz nixos-config-9df0353ec12a47c06a5ea459a21602c3903eae2e.zip |
refactor(modules/lf/ctpv/prev): Make all implicit dependencies explicit
Diffstat (limited to '')
10 files changed, 19 insertions, 12 deletions
diff --git a/modules/by-name/lf/lf/ctpv/default.nix b/modules/by-name/lf/lf/ctpv/default.nix index e89ae453..2c8743d9 100644 --- a/modules/by-name/lf/lf/ctpv/default.nix +++ b/modules/by-name/lf/lf/ctpv/default.nix @@ -113,15 +113,7 @@ }; dependencies = lib.mkOption { type = lib.types.listOf lib.types.package; - default = with pkgs; [ - dash - coreutils - # Dependencies of the helpers.sh script - chafa - gnused - gnugrep - unixtools.script - ]; + default = []; description = "The packages to provide to the script"; }; }; diff --git a/modules/by-name/lf/lf/ctpv/prev/application/epub/default.nix b/modules/by-name/lf/lf/ctpv/prev/application/epub/default.nix index 33c51352..40510a78 100644 --- a/modules/by-name/lf/lf/ctpv/prev/application/epub/default.nix +++ b/modules/by-name/lf/lf/ctpv/prev/application/epub/default.nix @@ -8,6 +8,8 @@ dependencies = with pkgs; [ bk epub-thumbnailer + chafa + gnused ]; }; }; diff --git a/modules/by-name/lf/lf/ctpv/prev/application/pdf/default.nix b/modules/by-name/lf/lf/ctpv/prev/application/pdf/default.nix index b27e3ef9..d3061ea8 100644 --- a/modules/by-name/lf/lf/ctpv/prev/application/pdf/default.nix +++ b/modules/by-name/lf/lf/ctpv/prev/application/pdf/default.nix @@ -6,6 +6,8 @@ priority = 1; dependencies = [ pkgs.poppler_utils # for `pdftoppm` + pkgs.chafa + pkgs.gnused ]; }; }; diff --git a/modules/by-name/lf/lf/ctpv/prev/application/pgp/default.nix b/modules/by-name/lf/lf/ctpv/prev/application/pgp/default.nix index c219a1ed..32f42783 100644 --- a/modules/by-name/lf/lf/ctpv/prev/application/pgp/default.nix +++ b/modules/by-name/lf/lf/ctpv/prev/application/pgp/default.nix @@ -11,6 +11,7 @@ priority = 1; dependencies = [ pkgs.sequoia-sq + pkgs.unixtools.script ]; }; }; diff --git a/modules/by-name/lf/lf/ctpv/prev/audio/default.nix b/modules/by-name/lf/lf/ctpv/prev/audio/default.nix index 97731daf..0c60e9d5 100644 --- a/modules/by-name/lf/lf/ctpv/prev/audio/default.nix +++ b/modules/by-name/lf/lf/ctpv/prev/audio/default.nix @@ -6,6 +6,9 @@ dependencies = [ pkgs.ffmpegthumbnailer pkgs.ffmpeg + + pkgs.chafa + pkgs.gnused ]; }; }; diff --git a/modules/by-name/lf/lf/ctpv/prev/font/default.nix b/modules/by-name/lf/lf/ctpv/prev/font/default.nix index f5301008..306e7892 100644 --- a/modules/by-name/lf/lf/ctpv/prev/font/default.nix +++ b/modules/by-name/lf/lf/ctpv/prev/font/default.nix @@ -11,6 +11,8 @@ ]; dependencies = [ pkgs.fontforge # for `fontimage` + pkgs.chafa + pkgs.gnused ]; }; }; diff --git a/modules/by-name/lf/lf/ctpv/prev/image/default.nix b/modules/by-name/lf/lf/ctpv/prev/image/default.nix index 36700fec..87fba00c 100644 --- a/modules/by-name/lf/lf/ctpv/prev/image/default.nix +++ b/modules/by-name/lf/lf/ctpv/prev/image/default.nix @@ -4,7 +4,8 @@ previewer = ./image.sh; matches.mime = ["image/*"]; dependencies = [ - # Everything is already in the default dependencies. + pkgs.chafa + pkgs.gnused ]; }; }; diff --git a/modules/by-name/lf/lf/ctpv/prev/image/svg+xml/default.nix b/modules/by-name/lf/lf/ctpv/prev/image/svg+xml/default.nix index 5b965fd7..90915c84 100644 --- a/modules/by-name/lf/lf/ctpv/prev/image/svg+xml/default.nix +++ b/modules/by-name/lf/lf/ctpv/prev/image/svg+xml/default.nix @@ -6,6 +6,8 @@ matches.mime = ["image/svg+xml"]; dependencies = [ pkgs.imagemagick + pkgs.chafa + pkgs.gnused ]; }; }; diff --git a/modules/by-name/lf/lf/ctpv/prev/inode/default.nix b/modules/by-name/lf/lf/ctpv/prev/inode/default.nix index bed0b81a..eaade0f1 100644 --- a/modules/by-name/lf/lf/ctpv/prev/inode/default.nix +++ b/modules/by-name/lf/lf/ctpv/prev/inode/default.nix @@ -1,10 +1,10 @@ -{...}: { +{pkgs, ...}: { soispha.programs.lf.ctpv.previewers = { ls = { previewer = ./ls.sh; priority = 1; matches.mime = ["inode/directory"]; - dependencies = []; + dependencies = [pkgs.coreutils]; }; symlink = { previewer = ./symlink.sh; diff --git a/modules/by-name/lf/lf/ctpv/prev/video/default.nix b/modules/by-name/lf/lf/ctpv/prev/video/default.nix index 47749d2c..f38f61c7 100644 --- a/modules/by-name/lf/lf/ctpv/prev/video/default.nix +++ b/modules/by-name/lf/lf/ctpv/prev/video/default.nix @@ -5,6 +5,8 @@ matches.mime = ["video/*"]; dependencies = [ pkgs.ffmpegthumbnailer + pkgs.chafa + pkgs.gnused ]; }; }; |