fix: check package arguments before applying Nix 2.18 override #34
Loading…
Add table
Add a link
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
nixinput for devenv in nixpkgs was changed tonixVersionsand 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 hasnixas an argument before attempting to override that input with upstream Nix 2.18.This should be conditional on
devenvtakingnixas argument - it's possible people are still on older nixpkgs versions.f05ab6682dto0dda988746fix: 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!