mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-01 01:30:27 +00:00
__structuredAttrs is now enabled by default for python packages. this
means that the current way of passing cmakeFlags, by interpreting it as
string in the environment variable, no longer works; it now becomes a
regular bash array. to work around this, we expand it directly in nix.
the other alternative i can think of is using
'import json; cmake_args = json.load(open(os.environ["NIX_ATTRS_JSON_FILE"])).get("cmakeFlags", []) + ['
but i'm not sure that's much better either.
1.6 KiB
1.6 KiB