I am trying to wrap additional parameters for ferdium here
Even if the parameters appears as in the nix file on the call to the wrapped binary it does not seems to be passed in the end. I took elements from this topic Partly overriding a .desktop entry but I think something may be wrong as it is not the makeWrapper function that is used.
I tried to find a solution to this and it seems the evaluation of ${NIXOS_OZONE_WL:+${WAYLAND_DISPLAY:+--ozone-platform=wayland}} ${NIXOS_OZONE_WL:+${WAYLAND_DISPLAY:+--enable-features=UseOzonePlatform,WebRTCPipeWireCapturer}}
is not working even if the variables are set in my env. The resulted spawned binary does not have the arguments set.
if I change the lines in the wrapProgram function into