mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
nwjs: add NIXOS_OZONE_WL
This commit is contained in:
parent
80340d2b5f
commit
b4c8a38c0f
1 changed files with 13 additions and 1 deletions
|
@ -21,6 +21,7 @@
|
|||
, libuuid
|
||||
, libxcb
|
||||
, libxkbcommon
|
||||
, makeWrapper
|
||||
, mesa
|
||||
, nspr
|
||||
, nss
|
||||
|
@ -30,6 +31,7 @@
|
|||
, stdenv
|
||||
, systemd
|
||||
, udev
|
||||
, wrapGAppsHook
|
||||
, xorg
|
||||
}:
|
||||
|
||||
|
@ -101,10 +103,20 @@ stdenv.mkDerivation {
|
|||
}."${flavor + bits}";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoPatchelfHook ];
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
(wrapGAppsHook.override { inherit makeWrapper; })
|
||||
];
|
||||
|
||||
buildInputs = [ nwEnv ];
|
||||
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 = ''
|
||||
runHook preInstall
|
||||
|
||||
|
|
Loading…
Reference in a new issue