Structured cmakeFlags / attrs

I am looking for a solution for luarocks to deal with cmake based packages. The best fix would be to have structured cmakeFlags which was mentioned in https://github.com/NixOS/rfcs/pull/13, with PRs like https://github.com/NixOS/nixpkgs/pull/17886.

Seems like stdenv: enable __structuredAttrs by globin · Pull Request #72074 · NixOS/nixpkgs · GitHub is the way forward.
I tried to enable __structuredAttrs = true for just my derivation but it ended up with /setup: No such file or directory errors.
1/ any quickfix to address this error ?
2/ what’s the status of stdenv 2.0 ?

Cheers

3 Likes

stdenv: enable __structuredAttrs by globin · Pull Request #72074 · NixOS/nixpkgs · GitHub is the way forward. We need to clone @globin @jtojnar 5x each so we can finish it :).

I dont mind helping with the workload as it is a crucial feature that could really help clean nixpkgs. But I would need some guidance and I guess it might not be easy to split the load anyway.