Skip to content
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

makeSetupHook broken in __structuredAttrs __bootPackages #240753

Closed
Artturin opened this issue Jun 30, 2023 · 2 comments
Closed

makeSetupHook broken in __structuredAttrs __bootPackages #240753

Artturin opened this issue Jun 30, 2023 · 2 comments
Labels
6.topic: stdenv Standard environment

Comments

@Artturin
Copy link
Member

Artturin commented Jun 30, 2023

$ nix build --impure --expr "with import ./. { config = { structuredAttrsByDefault = true; }; }; stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.libxcrypt"
this derivation will be built:
  /nix/store/994qfy50ylyafndz12zh8zq1a73gi5ll-libxcrypt-4.4.35.drv
building '/nix/store/994qfy50ylyafndz12zh8zq1a73gi5ll-libxcrypt-4.4.35.drv'...
libxcrypt> structuredAttrs is enabled
libxcrypt> unpacking sources
libxcrypt> unpacking source archive /nix/store/spzw99ag9wq184zd9il0n66937m30dzl-libxcrypt-4.4.35.tar.xz
libxcrypt> source root is libxcrypt-4.4.35
libxcrypt> setting SOURCE_DATE_EPOCH to timestamp 1686071870 of file libxcrypt-4.4.35/config.h.in
libxcrypt> patching sources
libxcrypt> updateAutotoolsGnuConfigScriptsPhase
libxcrypt> Updating Autotools / GNU config script to a newer upstream version: ./build-aux/m4-autogen/config.sub
libxcrypt> cp: cannot stat '@gnu_config@/config.sub': No such file or directory

broken hook can be found with

nix build --impure --expr "with import ./. { config = { structuredAttrsByDefault = true; }; }; stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.stdenv.__bootPackages.updateAutotoolsGnuConfigScriptsHook"

Originally posted by @Artturin in #237968 (comment)

@Artturin Artturin added the 6.topic: stdenv Standard environment label Jun 30, 2023
@Artturin Artturin changed the title substituteAll broken in __structuredAttrs __bootPackages makeSetupHook broken in __structuredAttrs __bootPackages Jun 30, 2023
@Artturin
Copy link
Member Author

ok good the issue is not actually that complicated since it happens in nix build --impure --expr "with import ./. { }; updateAutotoolsGnuConfigScriptsHook.overrideAttrs (_: { __structuredAttrs = true; })" too, so it's just a issue of substitutions not being in env attrset

@Artturin
Copy link
Member Author

#240759

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: stdenv Standard environment
Projects
None yet
Development

No branches or pull requests

1 participant