blender: add updateScript

Change srcs -> src otherwise nix-update does not update the hash; we
don’t need srcs anymore, anyway, as there is now only one.
This commit is contained in:
Andrew Marshall
2025-05-02 18:44:54 -04:00
parent f02fddb8ac
commit c680dc2c3c
+8 -1
View File
@@ -53,6 +53,7 @@
llvmPackages,
makeWrapper,
mesa,
nix-update-script,
openUsdSupport ? !stdenv.hostPlatform.isDarwin,
openal,
opencollada-blender,
@@ -114,7 +115,7 @@ stdenv'.mkDerivation (finalAttrs: {
pname = "blender";
version = "4.4.1";
srcs = fetchzip {
src = fetchzip {
name = "source";
url = "https://download.blender.org/source/blender-${finalAttrs.version}.tar.xz";
hash = "sha256-5MsJ7UFpwwtaq905CiTkas/qPYOaeiacSSl3qu9h5w0=";
@@ -414,6 +415,12 @@ stdenv'.mkDerivation (finalAttrs: {
}], check=True) # noqa: E501
'';
};
updateScript = nix-update-script {
extraArgs = [
"--url=https://projects.blender.org/blender/blender"
];
};
};
meta = {