mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
plugins/image: add curlPackage and ueberzugPackage
This commit is contained in:
parent
6915b851a2
commit
93b8b75ff3
2 changed files with 21 additions and 2 deletions
|
@ -22,6 +22,14 @@ in
|
|||
];
|
||||
};
|
||||
|
||||
curlPackage = lib.mkPackageOption pkgs "curl" {
|
||||
nullable = true;
|
||||
};
|
||||
|
||||
ueberzugPackage = lib.mkPackageOption pkgs "ueberzug" {
|
||||
nullable = true;
|
||||
};
|
||||
|
||||
backend =
|
||||
helpers.defaultNullOpts.mkEnumFirstDefault
|
||||
[
|
||||
|
@ -125,8 +133,8 @@ in
|
|||
extraPackages = [
|
||||
# In theory, we could remove that if the user explicitly disables `downloadRemoteImages` for
|
||||
# all integrations but shipping `curl` is not too heavy.
|
||||
pkgs.curl
|
||||
] ++ optional (cfg.backend == "ueberzug") pkgs.ueberzugpp;
|
||||
cfg.curlPackage
|
||||
] ++ optional (cfg.backend == "ueberzug") cfg.ueberzugPackage;
|
||||
|
||||
extraConfigLua =
|
||||
let
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue