franz+derivatives: Implement NIXOS_OZONE_WL
Reverts back to using wrapProgramShell rather than wrapProgramBinary Adds "--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations" when NIXOS_OZONE_WL is set
This commit is contained in:
parent
41facdabeb
commit
0d9236cfcb
|
@ -87,10 +87,11 @@ in stdenv.mkDerivation (rec {
|
||||||
dontWrapGApps = true;
|
dontWrapGApps = true;
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
# make xdg-open overrideable at runtime
|
# make xdg-open overridable at runtime
|
||||||
wrapProgram $out/opt/${name}/${pname} \
|
wrapProgramShell $out/opt/${name}/${pname} \
|
||||||
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeDependencies}" \
|
--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath runtimeDependencies}" \
|
||||||
--suffix PATH : ${xdg-utils}/bin \
|
--suffix PATH : ${xdg-utils}/bin \
|
||||||
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}" \
|
||||||
"''${gappsWrapperArgs[@]}"
|
"''${gappsWrapperArgs[@]}"
|
||||||
'';
|
'';
|
||||||
} // cleanedArgs)
|
} // cleanedArgs)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user