-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvscode.nix
More file actions
31 lines (28 loc) · 788 Bytes
/
vscode.nix
File metadata and controls
31 lines (28 loc) · 788 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
with import <nixpkgs> {};
mkShell rec {
name = "patchCppTools";
buildInputs = [
jdk
llvm
clang
gdb
gcc
cmake
pkg-config
vscode
];
ld = stdenv.lib.makeLibraryPath ([
stdenv.cc.cc.lib ncurses5 zlib
] ++ buildInputs );
# find ./bin -type f -perm -0100 \
# -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" {} \;
shellHook = ''
interp="$(cat $NIX_CC/nix-support/dynamic-linker)"
rpath=${ld}
export PATH=$PATH:${stdenv.lib.makeBinPath [ coreutils gnugrep gnused which ]}
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${ld}
# unset http_proxy
# unset https_proxy
# find . -type f -perm -0100 -exec patchelf --interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" {} \;
'';
}