Unknown experimental Nix feature 'discard-references'

error: experimental Nix feature ‘discard-references’ is disabled; use ‘–extra-experimental-features discard-references’ to override

I could no find any documentation so far regarding that feature.
EDIT: Only occurence so far nur-combined.

Is there a way to find out where in a codebase a certain feature is requested ? Kind of why-depends but for features ?

This feature is available since nix 2.18, so maybe try to update your nix package manager. Than the error should go away.

Just wondering why I’m required to set it explicitly.

Or is that just enabled per default in 2.18+ ?

It was stabilized in 2.18 afaik. So you no longer need to enable it.

1 Like