Commit graph

8 commits

Author SHA1 Message Date
Mukilan Thiyagarajan
1efecf9b50
Use system lld on NixOS instead of rust-lld (#30123)
The -Zgcc-ld=lld flag makes rust use the rust-lld
linker that is distributed as part of rust toolchain.
However, this flag doesn't work on nixos correctly
as
  1) rust-lld needs to be patched to have the correct rpath
     to find libz.so
  2) the bin/gcc-ld/ld.lld wrapper which calls rust-lld also
     needs to be patched to use the correct dynamic loader
  3) rust-lld doesn't respect NIX_LDFLAGS which contains
     the additional search path derived from buildInputs.
     The system linkers on nixos are wrapped so that
     NIX_LDFLAGS is added as the rpath to the final binary.

Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
2023-08-18 06:18:05 +00:00
Mifom
11892c7f84 Update shell.nix
Replace deprecated xlibsWrapper with just xorg.libX11
2023-04-09 23:35:17 +03:00
yvt
57eb5a56d1 chore(nix): replace pkgconfig with pkg-config
`pkgconfig` has been renamed to `pkg-config` in nixpkgs.
2022-10-07 01:40:54 +09:00
yvt
71a6a00d26 chore(nix): add AppKit to buildInputs on Darwin
Signed-off-by: yvt <i@yvt.jp>
2022-09-16 00:37:07 +09:00
Nathan Lefler
881e01ab7e Update nix-shell package names
"xlibs" has been renamed to "xorg"
"x11" has been renamed to "xlibsWrapper"

Signed-off-by: Nathan Lefler <nathan@lefler.me>
2022-07-31 23:57:58 +00:00
yvt
e4cd5a1c96 chore(nix): define LD_LIBRARY_PATH outside shellHook
For consistency with other environment variables defined in the same
file.
2021-10-16 01:27:59 +09:00
yvt
e61d7f808a chore(nix): add libxkbcommon to LD_LIBRARY_PATH 2021-10-16 01:27:59 +09:00
Maciej Krüger
9d0b06ac54
add etc/shell.nix for nix/nixOS 2021-05-31 00:28:37 +02:00