This repository was archived by the owner on Apr 26, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ Add GCC and GNU Make to the Nix flake development environment so that `ruff` can be compiled.
Original file line number Diff line number Diff line change 89
89
} )
90
90
# The rust-analyzer language server implementation.
91
91
rust-analyzer
92
+ # GCC includes a linker; needed for building `ruff`
93
+ gcc
94
+ # Needed for building `ruff`
95
+ gnumake
92
96
93
97
# Native dependencies for running Synapse.
94
98
icu
236
240
URI
237
241
YAMLLibYAML
238
242
] } ";
243
+
244
+ # Clear the LD_LIBRARY_PATH environment variable on shell init.
245
+ #
246
+ # By default, devenv will set LD_LIBRARY_PATH to point to .devenv/profile/lib. This causes
247
+ # issues when we include `gcc` as a dependency to build C libraries, as the version of glibc
248
+ # that the development environment's cc compiler uses may differ from that of the system.
249
+ #
250
+ # When LD_LIBRARY_PATH is set, system tools will attempt to use the development environment's
251
+ # libraries. Which, when built against an different glibc version lead, to "version 'GLIBC_X.YY' not
252
+ # found" errors.
253
+ enterShell = ''
254
+ unset LD_LIBRARY_PATH
255
+ '' ;
239
256
}
240
257
] ;
241
258
} ;
You can’t perform that action at this time.
0 commit comments