Commit Graph

172 Commits

Author SHA1 Message Date
Andrew Marshall
0c4a07bf9f blender: enable path guiding support
https://wiki.blender.org/wiki/Reference/Release_Notes/3.4/Cycles#Path_Guiding
2023-09-28 18:27:38 -04:00
Andrew Marshall
e4fc97efb1
blender: 3.6.3 -> 3.6.4 (#257543) 2023-09-28 13:33:27 -04:00
Andrew Marshall
0c101e7a04
blender: Add pkg test for rendering (#245613)
Basic headless render test for Eevee and Cycles CPU. Did this because I
got a bit tired of testing render manually for both renderers (though
it’s not that much work).

Note that `render.threads` config is used only by Cycles. Using 1 thread
chosen because it’s not meaningfully slower than more for this render,
and it simplifies things to just pick 1 instead of making it dynamic.

Have chosen 32 samples since it’s not meaningfully slower than 1 (even
with `--cores 1`), and it’s not so small that maybe it’s not
representative, and too-low a number and there are artifacts that may
make it appear like something is broken.

Cycles denoising needs openimagedenoise and is not currently included in
aarch64 build.
2023-09-27 00:13:56 -04:00
Andrew Marshall
1da531b50d
blender: 3.6.2 -> 3.6.3 (#256729) 2023-09-25 15:56:55 -04:00
Michal Sojka
3445fd3b8b blender: add zstandard python module
This module is needed by Flamenco addon. Without it, submitting jobs
to Flamenco manager [1] fails with:

    Error performing BAT pack: File is compressed with ZStandard,
    install the `zstandard` module to support this.

Binary Blender releases already contain this module as can be seen by
running:

    curl https://mirrors.dotsrc.org/blender/release/Blender3.6/blender-3.6.2-linux-x64.tar.xz | tar tJ | grep zstandard

[1]: https://flamenco.blender.org/
2023-09-17 01:48:17 +02:00
Andrew Marshall
231801e729
blender: 3.6.0 -> 3.6.2 (#245539) 2023-08-19 16:14:14 -04:00
Austin Horstman
f61284a19f
treewide: add meta.mainProgram to misc 2023-08-04 14:10:05 -05:00
Andrew Marshall
f1468a9946
blender: Build with Draco support (#245535)
See https://github.com/NixOS/nixpkgs/issues/217921

Blender sets WITH_DRACO=OFF if WITH_PYTHON_INSTALL=OFF, however that’s
not totally necessary. Removing that forced-set then builds with
WITH_DRACO=ON, however Blender fails to launch because this creates
e.g. `share/blender/3.6/python`, and Blender then sets this as Python’s
home dir, so Python fails to init since it expects Python core to be
there (and it’s not). I couldn’t figure out how Blender sets Python’s
home dir, and explicitly setting PYTHONHOME in the env didn’t have any
effect. So instead just rename that dir to python-ext to avoid this
behavior. All that is left then is to adjust where Blender is looking
for the Draco lib.

This functionality may be verified by:

1. Visiting File → Export → glTF 2.0
2. In the right side panel (press the gear icon in top-right if not
   visible), expanding “Data”
3. Enabling “Compression”
4. Press “Export glTF 2.0”
5. Verify:
   - Blender stdout+stderr shows “Draco mesh compression is available”
   - no error or warning message
   - exported file exists
2023-07-29 01:34:33 -04:00
Someone Serge
471dbe9bcf
treewide: consume config.cudaSupport as required
Eliminate uses of `config.cudaSupport or false` and alike, since the
option is now declared in config.nix with a default value

fd .nix -t f -x sed 's/config\.cudaSupport or false, cudaPackages [?] [{][}]/config.cudaSupport, cudaPackages ? { }/' '{}' -i
fd .nix -t f -x sed 's/config\.cudaSupport or false/config.cudaSupport/' '{}' -i
fd .nix -t f -x sed 's/cudaSupport = pkgs.config.cudaSupport/inherit (pkgs.config) cudaSupport/' '{}' -i
fd .nix -t f -x sed 's/cudaSupport = config.cudaSupport/inherit (config) cudaSupport/' '{}' -i
2023-07-20 18:08:19 +03:00
Andrew Marshall
db9ff9eb8a blender: 3.5.1 -> 3.6.0
Without removing the `rm … FindEmbree`, compilation fails due to various
macros depending on the version of embree. The nixpkgs history provides
no indication of why this patch is done (it has been present since the
addition of embree as a dep in
6b74f99abd), and the build succeeds
without them, so remove.
2023-07-10 11:31:22 -04:00
Andrew Marshall
f5911e4068
blender: Add Python to passthru for use in addon drvs (#230884)
Blender addons that have native extensions need to be built against the
same Python that Blender was built with. This makes it easier to write
such addon derivations.
2023-05-22 17:06:34 -04:00
yakrobat
01a31b8c2d
blender: enable wayland 2023-05-14 00:31:22 +03:00
lucasew
fd34bc39e4 blender-with-packages: refactor
Signed-off-by: lucasew <lucas59356@gmail.com>
2023-05-10 21:49:56 -03:00
Pauan
8c32a5b2ce
blender 3.4.1 -> 3.5.1 (#229570) 2023-05-04 02:02:14 -04:00
Andrew Marshall
3c4933f090 blender: mark broken on darwin
Has been broken likely since edcd3849a6.

First failing Hydra: https://hydra.nixos.org/build/211894618

Notes from attempt to fix:

- The initial breakage may be easy to fix, but the upgrade to 3.4 added
  a lot more hurdles
- The patch fails to apply, but is trivially naïvely fixable
- At least some of the existing darwin-specific substituteInPlace no
  longer find anything
- When building with naïve fix for patch, fails with:
   > Could NOT find USD (missing: USD_LIBRARY USD_INCLUDE_DIR)
  for reasons that are not clear to me

The package has been broken for two months and no open issues, so
marking as broken as it’s not going to fix itself and if there is will
to fix it, someone can. For now, leaving the darwin conditionals in
place so not as to make a would-be-fixer’s job harder.
2023-05-02 20:01:13 -04:00
Sandro Jäckel
0313eb4795
blender: patch removed numpy attribute 2023-04-23 20:08:58 +02:00
Artturin
eac28f38d6 treewide: fix lints
Arg to lib.optional is a list

build time tool in buildInputs

*Flags not a list

https://github.com/nix-community/nixpkgs-lint
2023-04-18 20:20:56 +03:00
Matthew Croughan
c0615e86d1
blender: allow dynamically linked embree (#225168) 2023-04-07 16:24:54 -04:00
Matthew Croughan
da6f3042c9
blender: add aarch64-linux support (#224771) 2023-04-05 15:44:24 -04:00
Pauan
92f28daede
blender: 3.3.1 -> 3.4.1 (#223478) 2023-03-28 17:45:26 -04:00
Tobias Markus
edcd3849a6 blender: Fix build after changes in Alembic package 2023-03-09 23:59:44 +01:00
Artturin
f9fdf2d402 treewide: move NIX_CFLAGS_COMPILE to the env attrset
with structuredAttrs lists will be bash arrays which cannot be exported
which will be a issue with some patches and some wrappers like cc-wrapper

this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists
in env cause a eval failure
2023-02-22 21:23:04 +02:00
Felix Buehler
cdb39a86e0 treewide: use optionalString 2023-02-13 21:52:34 +01:00
Shawn8901
0a1dd3ced1 treewide: remove global with lib; in pkgs/{misc,networking} 2023-01-24 17:29:20 +01:00
Robert Scott
a1deb65b09 openimageio: default to openimageio2, rename 1.x to openimageio_1
keep a couple of packages "using" openimageio_1 - both are broken
anyway, but as such we have no evidence that they work with 2.x.
all are liable to get removed in the near future anyway.
2023-01-05 20:26:49 +00:00
yvt
1f8dd05e72
blender: add libwebp to buildInputs (#208201)
Enables the WebP image format support in Blender. It has been [supported](https://developer.blender.org/rB4fd0a69d7ba) since Blender 3.2 but was disabled due to libwebp missing from the build inputs.

    $ nix build nixpkgs#blender
    $ nix log (realpath result)
    ...
    -- Could NOT find WebP (missing: _webp_LIBRARIES WEBP_INCLUDE_DIR)
    CMake Warning at build_files/cmake/platform/platform_unix.cmake:407 (message):
      WebP not found, disabling WITH_IMAGE_WEBP
    Call Stack (most recent call first):
      CMakeLists.txt:1058 (include)
2022-12-30 19:38:54 -05:00
Dmitry Kalinkin
bb498e0202
blender: fix on darwin (#200185) 2022-11-28 17:09:31 -05:00
Infinidoge
d09843bf11 blender: 3.3.0 -> 3.3.1 2022-10-30 11:22:53 +01:00
Artturin
7e49471316 treewide: optional -> optionals where the argument is a list
the argument to optional should not be list
2022-10-10 15:40:21 +03:00
Pauan
9717e20f4b
blender: 3.2.0 -> 3.3.0 (#190732) 2022-09-12 19:07:07 -04:00
Sebastian Neubauer
a3c401f35e
blender-hip: add blender with hip support (#187241) 2022-08-19 15:01:57 -04:00
Dmitry Kalinkin
007c4341fe
blender: fix on darwin 2022-07-07 11:57:28 -04:00
pennae
9a10ab2b3c blender: 3.1.0 -> 3.2.0 2022-06-14 11:43:23 +02:00
Rick van Schijndel
117ee3af2a
blender: mark broken on all darwins 2022-05-30 13:42:58 +02:00
Rick van Schijndel
53d8d81656 blender: mark broken on x86_64-darwin 2022-05-29 10:56:03 +02:00
Frederik Rietdijk
1d63f89caa cudaPackages: overhaul of how we package cuda packages
There are many different versions of the `cudatoolkit` and related
cuda packages, and it can be tricky to ensure they remain compatible.

- `cudaPackages` is now a package set with `cudatoolkit`, `cudnn`, `cutensor`, `nccl`, as well as `cudatoolkit` split into smaller packages ("redist");
- expressions should now use `cudaPackages` as parameter instead of the individual cuda packages;
- `makeScope` is now used, so it is possible to use `.overrideScope'` to set e.g. a different `cudnn` version;
- `release-cuda.nix` is introduced to easily evaluate cuda packages using hydra.
2022-04-09 08:50:22 +02:00
pennae
e2f381b2f1
blender: 2.93.5 -> 3.1.0 (#164987)
blender 3.1 now requires python 3.10 and zstd to build. also pin
cudatoolkit to 11 and optix to 7.3 as requested by the blender build
instructions for 3.1
2022-03-20 16:30:54 -04:00
lucasew
56b407d573 blender-with-packages: add wrapper to load python packages with blender
Signed-off-by: lucasew <lucas59356@gmail.com>
2022-01-13 11:07:25 -03:00
Maximilian Bosch
0609c19992
Merge pull request #141273 from pennae/blender-update
blender: 2.93.2 -> 2.93.5
2021-10-22 19:16:06 +02:00
pennae
b0dc5823fa blender: 2.93.2 -> 2.93.5 2021-10-11 18:27:48 +02:00
happysalada
731d67683c blender: darwin app dir fixes 2021-10-02 13:38:46 +09:00
happysalada
e4baf44922 blender: darwin add Applications and bin symlinks 2021-09-21 23:38:19 +09:00
Ilan Joselevich
94551d296e blender: 2.93.1 -> 2.93.2 2021-08-13 21:13:03 +03:00
Dmitry Kalinkin
520c2971d1
blender: 2.93.0 -> 2.93.1 2021-07-11 10:18:46 -04:00
Daniel Nagy
d847851a37
blender: add libharu as dependency
This allows to export Grease Pencil drawings as pdfs. For more
information, see:

https://wiki.blender.org/wiki/Reference/Release_Notes/2.93/Grease_Pencil

https://developer.blender.org/rBa8a92cd15a52
2021-06-08 18:34:23 +02:00
Dmitry Kalinkin
dca87350f4
blender: fix darwin build 2021-06-03 01:48:22 -04:00
Jonas Carpay
ff60dfcc7f blender: 2.92.0 -> 2.93.0 2021-06-03 10:42:25 +09:00
Jonathan Ringer
9efeb1ee83 blender: fix llvm build 2021-05-08 18:13:45 -07:00
Julien Moutinho
a1bc838a5e
blender: install with python3Packages.requests, fixes #97250 (#118987)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-04-12 04:12:40 +02:00
Gabriel Ebner
64678850c9 blender: make darwin patch apply again 2021-04-03 15:16:43 +02:00