qol(blender): we are building it now instead of downloading the bin

This commit is contained in:
2025-11-10 15:33:31 +00:00
parent 375e6a7116
commit 373bf166d0

View File

@@ -10,6 +10,17 @@
let let
blenderPkgs = inputs.nix-warez.packages.${system}; blenderPkgs = inputs.nix-warez.packages.${system};
cfg = config.modules.blender; cfg = config.modules.blender;
blender_4_5 = pkgs.blender.overrideAttrs (
final: prev: {
pname = "blender";
version = "4.5.0";
src = pkgs.fetchzip {
name = "source";
url = "https://download.blender.org/source/blender-${final.version}.tar.xz";
hash = "sha256-DNVZUZpysCyB/Xt8yB352gO+UK8Cd4aDFGYuUDKyIrs=";
};
}
);
in in
{ {
options.modules.blender = { options.modules.blender = {
@@ -17,8 +28,8 @@ in
}; };
# whole blender config including addons is too fat to include here # whole blender config including addons is too fat to include here
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = [
blenderPkgs.blender_4_5 blender_4_5
]; ];
}; };
# nix'ing a blender config is most likely not possible # nix'ing a blender config is most likely not possible