Commit f5588cc
committed
Revert "libcosmicAppHook: use RUSTFLAGS instead of platform specific flags (NixOS#464981)"
This reverts commit d2c6221.
PR NixOS#464981 changed libcosmicAppHook to use the global RUSTFLAGS instead
of target-specific CARGO_TARGET_*_RUSTFLAGS as a workaround for issue
PR NixOS#464392. However, this broke cross-compilation for packages using the
crabtime procedural macro (like cosmic-initial-setup).
The root cause was that buildRustPackage was always setting env.RUSTFLAGS,
which shadowed the target-specific flags. This has been fixed in commit
PR NixOS#464707, which only sets RUSTFLAGS when explicitly
needed.
Fixes cross-compilation of cosmic-initial-setup and other cosmic
packages that use crabtime proc macros.
Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>1 parent 0d96be1 commit f5588cc
File tree
2 files changed
+2
-9
lines changed- pkgs/by-name/li/libcosmicAppHook
2 files changed
+2
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
| 18 | + | |
23 | 19 | | |
24 | 20 | | |
25 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 60 | + | |
64 | 61 | | |
65 | 62 | | |
66 | 63 | | |
| |||
0 commit comments