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

Fix containers for nixpkgs 20.09 #264

Merged
merged 3 commits into from
Nov 11, 2020

Conversation

erikarvstedt
Copy link
Collaborator

@erikarvstedt erikarvstedt commented Nov 9, 2020

Nixpkgs 20.09 introduced a bug where nixpkgs overlays are ignored in containers. This breaks our pkgs.nix-bitcoin overlay:

$ test/run-tests.sh container
error: attribute 'nix-bitcoin' missing, at /home/main/d/nix-bitcoin/src/modules/bitcoind.nix:62:19

My upstream bugfix PR has not been merged yet.

Work around this by providing nix-bitcoin pkgs via an option instead of an overlay (in modules.nix).
This also has the advantage to slightly speed-up container builds because the pkgs of the host system can be reused in the container.

These packages are not useful in shell environemnts.
This works around a nixpkgs bug where overlays are ignored in containers.
Copy link
Member

@jonasnick jonasnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh that's an annoying bug. Thanks for fixing

ACK f1681f5

@jonasnick jonasnick merged commit 3ba5888 into fort-nix:master Nov 11, 2020
@erikarvstedt erikarvstedt deleted the fix-containers branch December 15, 2020 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants