Skip to content

Commit

Permalink
fix error message for nonexistent ghc/package in overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
tek committed Sep 17, 2023
1 parent 88509fa commit b39fcf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ghc-overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let
exists = pathExists path;
pregen = optionalAttrs exists (import path);
stored = optionalAttrs exists (pregen.${ghc.name} or {});
error = if exists then if hasAttr ghc.name pregen then noOverridesGhc else null else noOverridesFile gen.file;
error = if exists then if hasAttr ghc.name pregen then null else noOverridesGhc else noOverridesFile gen.file;
in deps.replace error stored ghc.overrides self super;

computeOverrides =
Expand Down

0 comments on commit b39fcf1

Please sign in to comment.