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 [RFC 0013] Ergonomic `cmakeFlags` by aneeshusa · Pull Request #13 · NixOS/rfcs · GitHub, with PRs like [WIP/RFC] Make `cmakeFlags` more ergonomic by aneeshusa · Pull Request #17886 · NixOS/nixpkgs · GitHub.

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.

In case anyone is interested, I opened a (draft) PR tackling this.

2 Likes