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

Make the package set a parameter instead of using <nixpkgs> everywhere #238

Merged
merged 26 commits into from Feb 2, 2021

Conversation

eamsden
Copy link
Contributor

@eamsden eamsden commented Nov 11, 2020

This PR takes a pkgs parameter to several files that previously referenced Nixpkgs/NixOS or paths from thence by the <nixpkgs> reference to NIX_PATH.

In a couple of places, modules were being disabled by full path, when a relative path suffices. See the NixOS manual section Replace Modules.

This also opens the way for using Nix flakes, as flakes.nix can now reference files (including the top-level default.nix) and simply pass in its nixpkgs input.

This PR includes an overlay patching configure.ac in the bind derivation, as it breaks on cross-compilation otherwise. This was necessary to get it building with both my local nixpkgs channel and my checkout of the latest nixpkgs master. If preferred, this can be split into a separate PR.


Fixes #206

release.nix Show resolved Hide resolved
@samueldr samueldr force-pushed the eamsden/parameterize-package-set branch from f9f4298 to 28494a8 Compare January 8, 2021 00:09
@samueldr
Copy link
Member

samueldr commented Jan 8, 2021

Hi! 👋

Thanks for the contribution, sorry it took so long until I properly could take a look.

I probably should have chimed up and said it'd take a while, but in the end it was needed, some things changed which needed some rework of your changes.

But, don't fear, I implemented the changes.

Can you review the updated change set, and more importantly, validate that it does work in your setup?

@samueldr samueldr force-pushed the eamsden/parameterize-package-set branch from 28494a8 to 9ff6dca Compare January 8, 2021 00:14
lib/release-tools.nix Outdated Show resolved Hide resolved
@samueldr
Copy link
Member

(Force pushed an update on top of master to better test)

@samueldr samueldr force-pushed the eamsden/parameterize-package-set branch 4 times, most recently from b023cb7 to 66b6a5d Compare January 31, 2021 06:01
@samueldr samueldr force-pushed the eamsden/parameterize-package-set branch from 66b6a5d to 088e89d Compare February 1, 2021 00:38
@samueldr samueldr force-pushed the eamsden/parameterize-package-set branch from 088e89d to 61433b2 Compare February 1, 2021 00:39
@samueldr
Copy link
Member

samueldr commented Feb 1, 2021

Last few pushes:

  • Fix conflicts with master
  • Fix eval issue with stock kernel and build.toplevel
  • Fix conflicts with master again

eamsden and others added 6 commits February 2, 2021 01:58
…ere.

Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Co-authored-by: Edward Amsden <edward@blackriversoft.com>
Co-authored-by: Samuel Dionne-Riel <samuel@dionne-riel.com>
Co-authored-by: Edward Amsden <edward@blackriversoft.com>
`modulesPath` is enough for our needs.
@samueldr samueldr force-pushed the eamsden/parameterize-package-set branch from 61433b2 to d796d40 Compare February 2, 2021 06:59
@samueldr
Copy link
Member

samueldr commented Feb 2, 2021

This final push, as I'm told, finally fixes hermetic eval when used as part of a flake.

@archseer
Copy link
Member

archseer commented Feb 2, 2021

Hmm. Looks like the documentation build is still having issues with the kernel package eval.

.ci/instantiate-all.nix wouldn't pass otherwise.
See NixOS/nixpkgs#111504 for the reason behind
this workaround.
@samueldr samueldr force-pushed the eamsden/parameterize-package-set branch from d796d40 to ede8fa5 Compare February 2, 2021 10:38
@samueldr samueldr merged commit 186c491 into NixOS:master Feb 2, 2021
@samueldr
Copy link
Member

samueldr commented Feb 2, 2021

Even though a lot changed, thank you @eamsden for getting the ball rolling!

@colemickens
Copy link
Member

colemickens commented Feb 3, 2021 via email

@eamsden
Copy link
Contributor Author

eamsden commented Feb 3, 2021

@samueldr no problem! Sorry I couldn't be around much to keep after it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. type: enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for flake-style pure-evaluation mode
4 participants