Identify package that refers to a broken one

when doing a home-manager switch I’m getting the error message:

error: Package ‘electron-21.4.0’ in /nix/store/pl7d0gqmhawmywqbvvjl2vm0bsjlad20-source/pkgs/development/tools/electron/binary/generic.nix:27 is marked as insecure, refusing to evaluate.
Now I tried to identify which “offending” package is referring to the outdated electron version but had no luck with:

$ nix-store --query --referrers /nix/store/pl7d0gqmhawmywqbvvjl2vm0bsjlad20-source/pkgs/development/tools/electron/binary/generic.nix
which does not report anything. I’m pretty sure I’m doing something wrong here. Is there some other way to identify the “offending” package?

Use --show-trace to get more info where in the eval the error happened.

Thanks! Found it

while evaluating the attribute 'installPhase' of the derivation 'obsidian-1.1.16'

1 Like