Skip to content

Add support for structuredAttrs being enabled in nixpkgs - #460

Open
SFrijters wants to merge 1 commit into
rocq-community:masterfrom
SFrijters:coqbin-structuredattrs
Open

Add support for structuredAttrs being enabled in nixpkgs#460
SFrijters wants to merge 1 commit into
rocq-community:masterfrom
SFrijters:coqbin-structuredattrs

Conversation

@SFrijters

Copy link
Copy Markdown

With structuredAttrs enabled, environment variables should live inside the env attrset. In the case of this project, this affects COQBIN, as per NixOS/nixpkgs#492142 , which moves it into env.

Setting COQBIN = ""; in default.nix while env.COQBIN exists causes an evaluation error:

Error: The env attribute set cannot contain any attributes passed to derivation.

To fix this, remove the attr instead if it exists, in either place.

I'm not familiar with this project other than being referred to it via NixOS/nixpkgs#492142 (comment) , so any pointers are welcome.

Tested nix-shell --arg do-nothing false --run "genNixActions" on

and I observe no change in the generated nix-action.* files while the eval error is gone.

With structuredAttrs enabled, environment variables should live inside
the `env` attrset. In the case of this project, this affects COQBIN, as
per NixOS/nixpkgs#492142 , which moves it into env.

Setting `COQBIN = "";` in `default.nix` while `env.COQBIN` exists causes an evaluation error:

Error: The `env` attribute set cannot contain any attributes passed to derivation.

To fix this, remove the attr instead if it exists, in either place.

Update after NixOS/nixpkgs#492142
@vbgl
vbgl force-pushed the coqbin-structuredattrs branch from aa50470 to 2b4b94e Compare July 6, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant