mirror of
https://github.com/roc-lang/roc.git
synced 2024-08-17 06:41:22 +03:00
get nix-shell --pure to work.
This commit is contained in:
parent
160047b26a
commit
808afae62b
1
examples/.gitignore
vendored
1
examples/.gitignore
vendored
@ -8,4 +8,5 @@ benchmarks/nqueens
|
||||
benchmarks/deriv
|
||||
benchmarks/cfold
|
||||
benchmarks/rbtree-insert
|
||||
benchmarks/rbtree-del
|
||||
effect-example
|
||||
|
24
shell.nix
24
shell.nix
@ -48,6 +48,7 @@ let
|
||||
xorg.libXcursor
|
||||
xorg.libXrandr
|
||||
xorg.libXi
|
||||
xorg.libxcb
|
||||
]
|
||||
else
|
||||
[ ];
|
||||
@ -74,13 +75,14 @@ let
|
||||
llvmPkgs.clang
|
||||
pkg-config
|
||||
zig
|
||||
# llb deps
|
||||
libffi
|
||||
libxml2
|
||||
zlib
|
||||
# lib deps
|
||||
llvmPkgs.libcxx
|
||||
llvmPkgs.libcxxabi
|
||||
libffi
|
||||
libunwind
|
||||
libxml2
|
||||
ncurses
|
||||
zlib
|
||||
# faster builds - see https://github.com/rtfeldman/roc/blob/trunk/BUILDING_FROM_SOURCE.md#use-lld-for-the-linker
|
||||
llvmPkgs.lld
|
||||
# dev tools
|
||||
@ -94,9 +96,17 @@ in mkShell (nixos-env // {
|
||||
|
||||
# Additional Env vars
|
||||
LLVM_SYS_100_PREFIX = "${llvmPkgs.llvm}";
|
||||
APPEND_LIBRARY_PATH = stdenv.lib.makeLibraryPath
|
||||
([ pkg-config llvmPkgs.libcxx llvmPkgs.libcxxabi libunwind ] ++ linux-inputs);
|
||||
LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:$APPEND_LIBRARY_PATH";
|
||||
LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath
|
||||
([
|
||||
pkg-config
|
||||
stdenv.cc.cc.lib
|
||||
llvmPkgs.libcxx
|
||||
llvmPkgs.libcxxabi
|
||||
libunwind
|
||||
libffi
|
||||
ncurses
|
||||
zlib
|
||||
] ++ linux-inputs);
|
||||
|
||||
# Aliases don't work cross shell, so we do this
|
||||
shellHook = ''
|
||||
|
Loading…
Reference in New Issue
Block a user