qol(blender): we are building it now instead of downloading the bin
This commit is contained in:
@@ -10,6 +10,17 @@
|
||||
let
|
||||
blenderPkgs = inputs.nix-warez.packages.${system};
|
||||
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
|
||||
{
|
||||
options.modules.blender = {
|
||||
@@ -17,8 +28,8 @@ in
|
||||
};
|
||||
# whole blender config including addons is too fat to include here
|
||||
config = lib.mkIf cfg.enable {
|
||||
home.packages = with pkgs; [
|
||||
blenderPkgs.blender_4_5
|
||||
home.packages = [
|
||||
blender_4_5
|
||||
];
|
||||
};
|
||||
# nix'ing a blender config is most likely not possible
|
||||
|
||||
Reference in New Issue
Block a user