nixpkgs/pkgs/development/libraries/qt-6/modules/qtquick3dphysics.nix
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

14 lines
240 B
Nix

{ qtModule
, lib
, stdenv
, qtbase
, qtquick3d
}:
qtModule {
pname = "qtquick3dphysics";
qtInputs = [ qtbase qtquick3d ];
env.NIX_CFLAGS_COMPILE = lib.optionalString (stdenv.isDarwin && stdenv.isx86_64)
"-faligned-allocation";
}