aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsodiboo <git@sodi.boo>2024-12-02 03:07:02 +0100
committerIvan Molodetskikh <yalterz@gmail.com>2024-12-03 05:53:48 -0800
commit7af937b08e0f0718528d1a31c44cc14cdf326f8c (patch)
tree5fd38cb1fc2e42f459c898f52bf95b9d1751a110
parent8665003269d1fbe4efe3c477a71400392930cac9 (diff)
downloadniri-7af937b08e0f0718528d1a31c44cc14cdf326f8c.tar.gz
niri-7af937b08e0f0718528d1a31c44cc14cdf326f8c.tar.bz2
niri-7af937b08e0f0718528d1a31c44cc14cdf326f8c.zip
nix: clang -> rustPlatform.bindgenHook
-rw-r--r--flake.nix10
1 files changed, 2 insertions, 8 deletions
diff --git a/flake.nix b/flake.nix
index a5484749..1a7319a1 100644
--- a/flake.nix
+++ b/flake.nix
@@ -26,10 +26,8 @@
{
lib,
cairo,
- clang,
dbus,
libGL,
- libclang,
libdisplay-info,
libinput,
seatd,
@@ -79,7 +77,7 @@
strictDeps = true;
nativeBuildInputs = [
- clang
+ rustPlatform.bindgenHook
pkg-config
];
@@ -119,8 +117,6 @@
'';
env = {
- LIBCLANG_PATH = lib.getLib libclang + "/lib";
-
# Force linking with libEGL and libwayland-client
# so they can be discovered by `dlopen()`
RUSTFLAGS = toString (
@@ -191,7 +187,7 @@
];
nativeBuildInputs = [
- pkgs.clang
+ pkgs.rustPlatform.bindgenHook
pkgs.pkg-config
pkgs.wrapGAppsHook4 # For `niri-visual-tests`
];
@@ -201,8 +197,6 @@
];
env = {
- inherit (niri) LIBCLANG_PATH;
-
# WARN: Do not overwrite this variable in your shell!
# It is required for `dlopen()` to work on some libraries; see the comment
# in the package expression