Closed mucaho closed 7 years ago
Another way is to pass extraOutputsToInstall = [ "lib" .... ]
to buildEnv
.
@vcunat is this still relevant?
The core of the issue is that default output(s) no longer contain everything, so the contents of buildEnv
result was reduced and some use cases might miss something. It isn't really specific to buildEnv
, as I see it...
It's been a year with no apparent problems, so either all instances have been fixed or the remaining ones are in packages that no one literally uses.
Closing.
As suggested, recent changes to the
buildEnv
may have broken code in some nix expressions. Some nix expressions usebuildEnv
to get links to the environment's shared libraries, which is now with the new changes no longer the default case. ReplacingbuildEnv
withmakeLibraryPath
is a straightforward fix to this, as described in the linked issue.grep -rnlw '.nix-defexpr/channels/nixpkgs/' -e "buildEnv"
gives me