Skip to content

Commit 251d394

Browse files
committed
nix: fix gtk3 bundle
1 parent 2031496 commit 251d394

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

nix/bundle.nix

+10-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pkgs.stdenvNoCC.mkDerivation {
3030

3131
preFixup = ''
3232
gappsWrapperArgs+=(
33-
--set LD_PRELOAD "${pkgs.gtk4-layer-shell}/lib/libgtk4-layer-shell.so"
3433
--prefix PATH : ${with pkgs;
3534
lib.makeBinPath (extraPackages
3635
++ [
@@ -39,6 +38,16 @@ pkgs.stdenvNoCC.mkDerivation {
3938
gtk3
4039
])}
4140
)
41+
42+
${
43+
if gtk4
44+
then ''
45+
gappsWrapperArgs+=(
46+
--set LD_PRELOAD "${pkgs.gtk4-layer-shell}/lib/libgtk4-layer-shell.so"
47+
)
48+
''
49+
else ""
50+
}
4251
'';
4352

4453
installPhase = ''

0 commit comments

Comments
 (0)