How to work around broken ‘gst-plugins-base-0.10.36’ when `nixos-rebuild swtich`?

I hit an error when running sudo nixos-rebuild switch:

building the system configuration...
error: Package ‘gst-plugins-base-0.10.36’ in /nix/store/yb3syfc6v7sbg3n62cyy29ymiyk779ki-nixos-20.09pre239318.c59ea8b8a0e/nixos/pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix:55 is marked as broken, refusing to evaluate.

It seems to have things to do with appimage-run: depends on broken gst-plugins-base · Issue #93174 · NixOS/nixpkgs · GitHub. But I don’t know how to work around it.

Is it a good idea to set { nixpkgs.config.allowBroken = true; } just to do the switch?

@WilliamHamilton mentioned in #nixos, he bisected the his package list, and found out steam and appimage_run were the ones causing the problem.

I have steam disabled, worked around this problem.

Question, what is the nix way to find out which package in the config depend on certain package?

If I’m right, you can use --verbose flag, it should display what dependancies it can’t build that need gst-plugins-base

Maybe --show-trace will be more helpful for this than --verbose.

1 Like

The full trace is here.

I didn’t realize when I first captured the trace. Now take a second look, steam-run was mentioned in the trace. I just didn’t look close enough.

while evaluating the attribute 'buildCommand' of the derivation 'steam-run' at /nix/store/yb3syfc6v7sbg3n62cyy29ymiyk779ki-nixos-20.09pre239318.c59ea8b8a0e/nixos/pkgs/build-support/trivial-builders.nix:7:7:

Thanks~

1 Like