slacky: remove electron from nativeBuildInputs, use lib.getExe and add ozone flags for wayland
This commit is contained in:
parent
6189acd550
commit
a1f8d236a7
@ -33,7 +33,6 @@ buildNpmPackage (finalAttrs: {
|
||||
strictDeps = true;
|
||||
|
||||
nativeBuildInputs = [
|
||||
electron
|
||||
copyDesktopItems
|
||||
];
|
||||
|
||||
@ -42,7 +41,8 @@ buildNpmPackage (finalAttrs: {
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/icons
|
||||
ln -s $out/lib/node_modules/slacky/build/icons/icon.png $out/share/icons/slacky.png
|
||||
makeWrapper ${electron}/bin/electron $out/bin/slacky \
|
||||
makeWrapper ${lib.getExe electron} $out/bin/slacky \
|
||||
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" \
|
||||
--add-flags $out/lib/node_modules/slacky/
|
||||
'';
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user