nix: clang -> rustPlatform.bindgenHook
Browse files at this commit7af937b08e0f0718528d1a31c44cc14cdf326f8cParent: 86650031 changed file +2 -8
- flake.nix +2 -8
flake.nixmodified+2 -8
| @@ -26,10 +26,8 @@ | ||
| 26 | 26 | { |
| 27 | 27 | lib, |
| 28 | 28 | cairo, |
| 29 | - clang, | |
| 30 | 29 | dbus, |
| 31 | 30 | libGL, |
| 32 | - libclang, | |
| 33 | 31 | libdisplay-info, |
| 34 | 32 | libinput, |
| 35 | 33 | seatd, |
| @@ -79,7 +77,7 @@ | ||
| 79 | 77 | strictDeps = true; |
| 80 | 78 | |
| 81 | 79 | nativeBuildInputs = [ |
| 82 | - clang | |
| 80 | + rustPlatform.bindgenHook | |
| 83 | 81 | pkg-config |
| 84 | 82 | ]; |
| 85 | 83 | |
| @@ -119,8 +117,6 @@ | ||
| 119 | 117 | ''; |
| 120 | 118 | |
| 121 | 119 | env = { |
| 122 | - LIBCLANG_PATH = lib.getLib libclang + "/lib"; | |
| 123 | - | |
| 124 | 120 | # Force linking with libEGL and libwayland-client |
| 125 | 121 | # so they can be discovered by `dlopen()` |
| 126 | 122 | RUSTFLAGS = toString ( |
| @@ -191,7 +187,7 @@ | ||
| 191 | 187 | ]; |
| 192 | 188 | |
| 193 | 189 | nativeBuildInputs = [ |
| 194 | - pkgs.clang | |
| 190 | + pkgs.rustPlatform.bindgenHook | |
| 195 | 191 | pkgs.pkg-config |
| 196 | 192 | pkgs.wrapGAppsHook4 # For `niri-visual-tests` |
| 197 | 193 | ]; |
| @@ -201,8 +197,6 @@ | ||
| 201 | 197 | ]; |
| 202 | 198 | |
| 203 | 199 | env = { |
| 204 | - inherit (niri) LIBCLANG_PATH; | |
| 205 | - | |
| 206 | 200 | # WARN: Do not overwrite this variable in your shell! |
| 207 | 201 | # It is required for `dlopen()` to work on some libraries; see the comment |
| 208 | 202 | # in the package expression |