Merge pull request #227673 from m-bdf/github-desktop-ozone
github-desktop: support ozone
This commit is contained in:
commit
91c754d381
1 changed files with 8 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
, fetchurl
|
, fetchurl
|
||||||
, autoPatchelfHook
|
, autoPatchelfHook
|
||||||
, wrapGAppsHook
|
, wrapGAppsHook
|
||||||
|
, makeWrapper
|
||||||
, gnome
|
, gnome
|
||||||
, libsecret
|
, libsecret
|
||||||
, git
|
, git
|
||||||
|
@ -29,7 +30,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
wrapGAppsHook
|
(wrapGAppsHook.override { inherit makeWrapper; })
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
@ -61,6 +62,12 @@ stdenv.mkDerivation rec {
|
||||||
ln -sf $out/opt/${pname} $out/bin/${pname}
|
ln -sf $out/opt/${pname} $out/bin/${pname}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
gappsWrapperArgs+=(
|
||||||
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform=wayland}}"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
runtimeDependencies = [
|
runtimeDependencies = [
|
||||||
(lib.getLib systemd)
|
(lib.getLib systemd)
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue