jetbrains.clion: add patchelf invocations for new binaries
version 2021.1 of clion (introduced with 3839373) has introduced additional clang related binaries which need patching. clangd and clazy-standalone also need the provided libclazyPlugin.so on the rpath.
This commit is contained in:
parent
213fcedc17
commit
dd2c1dd5c8
@ -65,12 +65,19 @@ let
|
||||
--set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib ]}:$gdbLibPath" \
|
||||
bin/gdb/linux/bin/gdbserver
|
||||
|
||||
clangPath=$out/clion-${version}/bin/clang/linux/
|
||||
patchelf --set-interpreter $interp \
|
||||
--set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib zlib ]}" \
|
||||
--set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib zlib ]}:$clangPath" \
|
||||
bin/clang/linux/clangd
|
||||
patchelf --set-interpreter $interp \
|
||||
--set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib zlib ]}" \
|
||||
bin/clang/linux/clang-tidy
|
||||
patchelf --set-interpreter $interp \
|
||||
--set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib zlib ]}" \
|
||||
bin/clang/linux/llvm-symbolizer
|
||||
patchelf --set-interpreter $interp \
|
||||
--set-rpath "${lib.makeLibraryPath [ stdenv.cc.cc.lib zlib ]}:$clangPath" \
|
||||
bin/clang/linux/clazy-standalone
|
||||
|
||||
wrapProgram $out/bin/clion \
|
||||
--set CL_JDK "${jdk}"
|
||||
|
Loading…
Reference in New Issue
Block a user