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; }; }; }