I noticed that there currently seems to be no way to override inputs to buildFHSEnv as it isn’t wrapped with lib.makeOverrideable and overrideAttrs is also not functional to pass a modified targetPkgs for example.
Is there a architectural reason overriding was not considered or was it just forgotten?
for now i wrapped it in lib.makeOverridable, but as pointed out it should be refactored. When are the bulidFHSuserEnv aliases supposed to get deprecated btw? I think it should be safe to add a deprecation warning as they are no longer used in nixpkgs.
I know I have a need for it. The package for envision (a tool for managing builds of monado and Opencomposite) uses a buildFHSEnv wrapper and dependencies are often added to those projects that need adding to the environment envision works in. Being able to override buildFHSEnv packages can alleviate some pain points when a new dependency gets added to those projects that hasn’t been addressed in the envision package yet.
Just wondering what’s happening with this PR since this discussion seems to have died out and the PR has similarly had nothing happen with it from what i can tell
Is it possible to do the overriding with overrideAttrs instead?
We have been working hard to unify the overrider, and overrideAttrs (added with stdenv.mkDerivation) is much feature-complete than override (added with lib.makeOverridable).
In addition, a derivation constructed with buildFHSEnv is often a package to be called with callPackage and provided under pkgs. callPackage will add a override attribute to the package (known as the <pkg>.override interface), shadowing any previously-defined override attribute.