aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorLoipesMas <46327403+LoipesMas@users.noreply.github.com>2024-11-02 20:12:14 +0100
committerIvan Molodetskikh <yalterz@gmail.com>2024-11-02 12:35:04 -0700
commitd58bb4eaa329c66aa8f8bd947a0c6f9f8b4e4537 (patch)
treec34c056b47c18a56dfccfc3fed823bad763f10ac /flake.nix
parentc5fe25f4228c2482c2963710f995a94106916439 (diff)
downloadniri-d58bb4eaa329c66aa8f8bd947a0c6f9f8b4e4537.tar.gz
niri-d58bb4eaa329c66aa8f8bd947a0c6f9f8b4e4537.tar.bz2
niri-d58bb4eaa329c66aa8f8bd947a0c6f9f8b4e4537.zip
flake: set RUSTFLAGS instead of CARGO_BUILD_RUSTFLAGS
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix4
1 files 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;
};
};
}