firefox: add pname to throw message

https://github.com/NixOS/nixpkgs/pull/164646#discussion_r835879348
This commit is contained in:
Martin Weinelt
2022-03-28 21:42:49 +02:00
committed by Yuka
parent 05a6b3c2b7
commit 4cf4a7b848
@@ -127,7 +127,7 @@
}:
assert stdenv.cc.libc or null != null;
assert pipewireSupport -> !waylandSupport || !webrtcSupport -> throw "pipewireSupport requires both wayland and webrtc support.";
assert pipewireSupport -> !waylandSupport || !webrtcSupport -> throw "${pname}: pipewireSupport requires both wayland and webrtc support.";
let
flag = tf: x: [(if tf then "--enable-${x}" else "--disable-${x}")];