fix: check package arguments before applying Nix 2.18 override #34
Loading…
Reference in a new issue
No description provided.
Delete branch "devusb/nixos-module:remove-devenv-overlay"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As part of a version bump, the
nix
input for devenv in nixpkgs was changed tonixVersions
and the version made explicit. As a consequence, trying to install devenv in a NixOS configuration that also uses this module fails per this upstream issue. This PR resolves the issue by verifying that a package from the override list hasnix
as an argument before attempting to override that input with upstream Nix 2.18.This should be conditional on
devenv
takingnix
as argument - it's possible people are still on older nixpkgs versions.f05ab6682d
to0dda988746
fix: remove devenv from override listto fix: check package arguments before applying Nix 2.18 override@puck thanks for the feedback -- makes sense. I went ahead and tried to generalize this check for all packages in the override list; hope this looks more reasonable.
This looks a lot safer. Thanks!