mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-11 10:55:31 +03:00
set NIX_LIBGCC_S_PATH in default.nix too
I did this earlier in flake.nix but forgot about default.nix Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
parent
d917c7daf1
commit
cec6d7424e
@ -14,7 +14,10 @@ let
|
||||
|
||||
llvmPkgs = pkgs.llvmPackages_13;
|
||||
# nix does not store libs in /usr/lib or /lib
|
||||
nixGlibcPath = if pkgs.stdenv.isLinux then "${pkgs.glibc.out}/lib" else "";
|
||||
glibcPath =
|
||||
if pkgs.stdenv.isLinux then "${pkgs.glibc.out}/lib" else "";
|
||||
libGccSPath =
|
||||
if pkgs.stdenv.isLinux then "${pkgs.stdenv.cc.cc.lib}/lib" else "";
|
||||
in
|
||||
|
||||
assert pkgs.lib.assertMsg rustVersionsMatch ''
|
||||
@ -104,7 +107,7 @@ in
|
||||
# wrapProgram pkgs.stdenv.cc: to make ld available for compiler/build/src/link.rs
|
||||
postInstall =
|
||||
if pkgs.stdenv.isLinux then ''
|
||||
wrapProgram $out/bin/roc --set NIX_GLIBC_PATH ${nixGlibcPath} --prefix PATH : ${
|
||||
wrapProgram $out/bin/roc --set NIX_GLIBC_PATH ${glibcPath} --set NIX_LIBGCC_S_PATH ${libGccSPath} --prefix PATH : ${
|
||||
pkgs.lib.makeBinPath [ pkgs.stdenv.cc ]
|
||||
}
|
||||
'' else ''
|
||||
|
Loading…
Reference in New Issue
Block a user