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

update.nix: Allow passing overlays #92628

Merged
merged 1 commit into from Jul 18, 2020
Merged

Conversation

jtojnar
Copy link
Contributor

@jtojnar jtojnar commented Jul 7, 2020

Previously, we relied on NIX_PATH for passing overlays but with flakes, we should pass them explicitly.

Previously, we relied on NIX_PATH for passing overlays but with flakes, we should pass them explicitly.
jtojnar added a commit to jtojnar/nixfiles that referenced this pull request Jul 10, 2020
Previously, I had to update expressions using commands like

	env NIX_PATH="$NIX_PATH:nixpkgs-overlays=$HOME/Projects/nixfiles/common/overlays" nix-shell maintainers/scripts/update.nix --arg include-overlays true --argstr path selfoss

but that was too long-winded and relied on nixpkgs impurely taking the overlays from NIX_PATH.

Let's just add a script that transparently and explicitly passes the pkgs overlay to nixpkgs, so that we can run

	update selfoss

Depends on NixOS/nixpkgs#92628
@jtojnar
Copy link
Contributor Author

jtojnar commented Jul 18, 2020

The change is backwards compatible and the option is internal (undocumented) so we can still change it in the future if we find a better design.

@jtojnar jtojnar merged commit 4325995 into NixOS:master Jul 18, 2020
@jtojnar jtojnar deleted the update-overlays branch July 18, 2020 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant