setup-hooks/wrap-gapps-hook: remove assertMsg usage

This commit is contained in:
Eman Resu
2026-05-26 14:13:06 -04:00
parent fded120b25
commit a070adc9c8

View File

@@ -30,7 +30,7 @@ makeSetupHook {
# depsTargetTargetPropagated will essentially be buildInputs when wrapGAppsHook3 is placed into nativeBuildInputs
# the librsvg and gtk3 above should be removed but kept to not break anything that implicitly depended on its binaries
depsTargetTargetPropagated =
assert (lib.assertMsg (!targetPackages ? raw) "wrapGAppsHook3 must be in nativeBuildInputs");
assert (!targetPackages ? raw || throw "wrapGAppsHook3 must be in nativeBuildInputs");
lib.optionals isGraphical [
# librsvg provides a module for gdk-pixbuf to allow rendering
# SVG icons. Most icon themes are SVG-based and so are some