File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,9 @@ pkgs.rustPlatform.buildRustPackage rec {
11
11
} ;
12
12
nativeBuildInputs = with pkgs ; [ pkg-config cargo-c ] ;
13
13
buildInputs = with pkgs ; [
14
+ mesa
15
+ libglvnd
16
+ pipewire
14
17
glib
15
18
wayland
16
19
libinput
@@ -27,6 +30,7 @@ pkgs.rustPlatform.buildRustPackage rec {
27
30
28
31
udev
29
32
] ;
33
+
30
34
cargoLockFile =
31
35
builtins . toFile "cargo.lock" ( builtins . readFile "${ src } /Cargo.lock" ) ;
32
36
cargoLock = {
@@ -36,6 +40,17 @@ pkgs.rustPlatform.buildRustPackage rec {
36
40
"smithay-0.3.0" = "sha256-jrBY/r4IuVKiE7ykuxeZcJgikqJo6VoKQlBWrDbpy9Y=" ;
37
41
} ;
38
42
} ;
43
+
44
+ # Force linking to libEGL, which is always dlopen()ed, and to
45
+ # libwayland-client, which is always dlopen()ed except by the
46
+ # obscure winit backend.
47
+ RUSTFLAGS = map ( a : "-C link-arg=${ a } " ) [
48
+ "-Wl,--push-state,--no-as-needed"
49
+ "-lEGL"
50
+ "-lwayland-client"
51
+ "-Wl,--pop-state"
52
+ ] ;
53
+
39
54
postPatch = ''
40
55
cp ${ cargoLockFile } Cargo.lock
41
56
'' ;
You can’t perform that action at this time.
0 commit comments