Merge pull request #227673 from m-bdf/github-desktop-ozone

github-desktop: support ozone
This commit is contained in:
Weijia Wang 2023-04-26 19:12:45 +03:00 committed by GitHub
commit 91c754d381
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
, fetchurl
, autoPatchelfHook
, wrapGAppsHook
, makeWrapper
, gnome
, libsecret
, git
@ -29,7 +30,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
autoPatchelfHook
wrapGAppsHook
(wrapGAppsHook.override { inherit makeWrapper; })
];
buildInputs = [
@ -61,6 +62,12 @@ stdenv.mkDerivation rec {
ln -sf $out/opt/${pname} $out/bin/${pname}
'';
preFixup = ''
gappsWrapperArgs+=(
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}"
)
'';
runtimeDependencies = [
(lib.getLib systemd)
];