Add missing joshuto dependencies

This commit is contained in:
Paul-Henri Froidmont 2024-03-26 04:05:25 +01:00
parent 213460bd1e
commit 666942d610
Signed by: phfroidmont
GPG key ID: BE948AFD7E7873BE

View file

@ -12,7 +12,7 @@ in {
package = with pkgs; package = with pkgs;
writeShellApplication { writeShellApplication {
name = "joshuto"; name = "joshuto";
runtimeInputs = [ ueberzugpp joshuto ]; runtimeInputs = [ ueberzugpp joshuto trash-cli xclip fzf ];
text = builtins.readFile ./files/joshuto_wrapper.sh; text = builtins.readFile ./files/joshuto_wrapper.sh;
}; };
settings = { settings = {
@ -20,7 +20,8 @@ in {
xdg_open_fork = true; xdg_open_fork = true;
display = { show_icons = true; }; display = { show_icons = true; };
preview.preview_script = with pkgs; preview.preview_script = with pkgs;
"${writeShellApplication { "${
writeShellApplication {
name = "joshuto-preview"; name = "joshuto-preview";
runtimeInputs = [ runtimeInputs = [
file file
@ -37,7 +38,8 @@ in {
w3m w3m
]; ];
text = builtins.readFile ./files/joshuto_preview_file.sh; text = builtins.readFile ./files/joshuto_preview_file.sh;
}}/bin/joshuto-preview"; }
}/bin/joshuto-preview";
preview.preview_shown_hook_script = with pkgs; preview.preview_shown_hook_script = with pkgs;
writeScript "on_preview_shown" '' writeScript "on_preview_shown" ''
#!/usr/bin/env bash #!/usr/bin/env bash