wrapper-manager/programs/blender: refactor

This commit is contained in:
Gabriel Arazas 2024-07-27 21:23:26 +08:00
parent 4262ccfa89
commit f6d80a44d1
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360

View File

@ -51,13 +51,18 @@ in
};
};
config = lib.mkIf cfg.enable {
basePackages = [ cfg.package ];
config = lib.mkIf cfg.enable (lib.mkMerge [
{
basePackages = [ cfg.package ];
# TODO: Should we replace the .desktop file for this?
wrappers.blender = {
arg0 = lib.getExe' cfg.package "blender";
env.BLENDER_SYSTEM_RESOURCES.value = lib.mkIf (builtins.length cfg.addons > 0) addons;
};
};
# TODO: Should we replace the .desktop file for this?
wrappers.blender = {
arg0 = lib.getExe' cfg.package "blender";
};
}
(lib.mkIf (builtins.length cfg.addons > 0) {
wrappers.blender.env.BLENDER_SYSTEM_RESOURCES.value = addons;
})
]);
}