Use `RUSTFLAGS` instead of `CARGO_BUILD_RUSTFLAGS` in dev shell
Browse files at this commit6f1a2c5f0e8274223d4204b1f8d6f7f91538967eParent: f717ae01 changed file +4 -4
- flake.nix +4 -4
flake.nixmodified+4 -4
| @@ -139,8 +139,8 @@ | ||
| 139 | 139 | ''; |
| 140 | 140 | |
| 141 | 141 | env = { |
| 142 | - # Force linking with libEGL and libwayland-client | |
| 143 | - # so they can be discovered by `dlopen()` | |
| 142 | + # Force linking with libEGL and libwayland-client so they end up in RPATH and | |
| 143 | + # can be discovered by `dlopen()` | |
| 144 | 144 | RUSTFLAGS = toString ( |
| 145 | 145 | map (arg: "-C link-arg=" + arg) [ |
| 146 | 146 | "-Wl,--push-state,--no-as-needed" |
| @@ -225,8 +225,8 @@ | ||
| 225 | 225 | # It is required for `dlopen()` to work on some libraries; see the comment |
| 226 | 226 | # in the package expression |
| 227 | 227 | # |
| 228 | - # This should only be set with `CARGO_BUILD_RUSTFLAGS="$CARGO_BUILD_RUSTFLAGS -C your-flags"` | |
| 229 | - CARGO_BUILD_RUSTFLAGS = niri.RUSTFLAGS; | |
| 228 | + # This should only be set with `RUSTFLAGS="$RUSTFLAGS -C your-flags"` | |
| 229 | + RUSTFLAGS = niri.RUSTFLAGS; | |
| 230 | 230 | }; |
| 231 | 231 | }; |
| 232 | 232 | } |