forge
Explore
Log in

Don't you dare go Hollow

flake: set RUSTFLAGS instead of CARGO_BUILD_RUSTFLAGS

Browse files at this commit

d58bb4eaa329c66aa8f8bd947a0c6f9f8b4e4537LoipesMasParent: c5fe25f
flake.nixmodified+2 -2
@@ -123,7 +123,7 @@
123 123
124 # Force linking with libEGL and libwayland-client124 # Force linking with libEGL and libwayland-client
125 # so they can be discovered by `dlopen()`125 # so they can be discovered by `dlopen()`
126- CARGO_BUILD_RUSTFLAGS = toString (126+ RUSTFLAGS = toString (
127 map (arg: "-C link-arg=" + arg) [127 map (arg: "-C link-arg=" + arg) [
128 "-Wl,--push-state,--no-as-needed"128 "-Wl,--push-state,--no-as-needed"
129 "-lEGL"129 "-lEGL"
@@ -208,7 +208,7 @@
208 # in the package expression208 # in the package expression
209 #209 #
210 # This should only be set with `CARGO_BUILD_RUSTFLAGS="$CARGO_BUILD_RUSTFLAGS -C your-flags"`210 # This should only be set with `CARGO_BUILD_RUSTFLAGS="$CARGO_BUILD_RUSTFLAGS -C your-flags"`
211- inherit (niri) CARGO_BUILD_RUSTFLAGS;211+ CARGO_BUILD_RUSTFLAGS = niri.RUSTFLAGS;
212 };212 };
213 };213 };
214 }214 }