From d58bb4eaa329c66aa8f8bd947a0c6f9f8b4e4537 Mon Sep 17 00:00:00 2001 From: LoipesMas <46327403+LoipesMas@users.noreply.github.com> Date: Sat, 2 Nov 2024 20:12:14 +0100 Subject: flake: set RUSTFLAGS instead of CARGO_BUILD_RUSTFLAGS --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index d86fec4b..a5484749 100644 --- a/flake.nix +++ b/flake.nix @@ -123,7 +123,7 @@ # Force linking with libEGL and libwayland-client # so they can be discovered by `dlopen()` - CARGO_BUILD_RUSTFLAGS = toString ( + RUSTFLAGS = toString ( map (arg: "-C link-arg=" + arg) [ "-Wl,--push-state,--no-as-needed" "-lEGL" @@ -208,7 +208,7 @@ # in the package expression # # This should only be set with `CARGO_BUILD_RUSTFLAGS="$CARGO_BUILD_RUSTFLAGS -C your-flags"` - inherit (niri) CARGO_BUILD_RUSTFLAGS; + CARGO_BUILD_RUSTFLAGS = niri.RUSTFLAGS; }; }; } -- cgit