mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-30 01:17:28 +03:00
nwjs: add NIXOS_OZONE_WL
This commit is contained in:
parent
80340d2b5f
commit
b4c8a38c0f
@ -21,6 +21,7 @@
|
|||||||
, libuuid
|
, libuuid
|
||||||
, libxcb
|
, libxcb
|
||||||
, libxkbcommon
|
, libxkbcommon
|
||||||
|
, makeWrapper
|
||||||
, mesa
|
, mesa
|
||||||
, nspr
|
, nspr
|
||||||
, nss
|
, nss
|
||||||
@ -30,6 +31,7 @@
|
|||||||
, stdenv
|
, stdenv
|
||||||
, systemd
|
, systemd
|
||||||
, udev
|
, udev
|
||||||
|
, wrapGAppsHook
|
||||||
, xorg
|
, xorg
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -101,10 +103,20 @@ stdenv.mkDerivation {
|
|||||||
}."${flavor + bits}";
|
}."${flavor + bits}";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ autoPatchelfHook ];
|
nativeBuildInputs = [
|
||||||
|
autoPatchelfHook
|
||||||
|
(wrapGAppsHook.override { inherit makeWrapper; })
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [ nwEnv ];
|
buildInputs = [ nwEnv ];
|
||||||
appendRunpaths = map (pkg: (lib.getLib pkg) + "/lib") [ nwEnv stdenv.cc.libc stdenv.cc.cc ];
|
appendRunpaths = map (pkg: (lib.getLib pkg) + "/lib") [ nwEnv stdenv.cc.libc stdenv.cc.cc ];
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
gappsWrapperArgs+=(
|
||||||
|
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations}}"
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user