-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package setup hooks are not run in an overriden derivation for added buildInputs #17732
Comments
I think I remember something ugly about namings of |
Adding |
That's because of an awful wart in our stdenv where |
Oh, I see… 😲 Thank you for investigating this. |
Yes, see #4855 |
Issue description
E.g. when
glib
andgsettings_desktop_schemas
are added tobuildInputs
, theGSETTINGS_SCHEMAS_PATH
should be exported and visible in derivation’s build phases. Or whenperl
is added,PERL5LIB
should be exported etc.And this works. However, when these are added to
buildInputs
usingoverrideDerivation
, these setup hooks seem to not be run, and their variables are not exported.Steps to reproduce
Now, when building
new
, bothPERL5LIB
andGSETTINGS_SCHEMAS_PATH
should be output (the first one twice).The build fails, as
GSETTINGS_SCHEMAS_PATH
is not exported at all. Moveglib
andgsettings_desktop_schemas
notold
’sbuildInputs
and it is.Output with
glib gsettings_desktop_schemas
added toold
’sbuildInputs
:Output with
glib gsettings_desktop_schemas
added tonew
’sbuildInputs
:Technical details
The text was updated successfully, but these errors were encountered: