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:
pmenke 2021-04-19 23:36:55 +02:00
parent 213fcedc17
commit dd2c1dd5c8
No known key found for this signature in database
GPG Key ID: EB7F2D4CCBE23B69

@ -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}"