jetbrains: Check for 64 bit specific fsnotifier

In April, 2021, Jetbrains announced the end of support for 32-bit OS
IntelliJ-based IDEs[1]:

> The final major version that will be guaranteed to run on a 32-bit OS will be
> v2021.1 for all IntelliJ-based IDEs, including AppCode, Clion, DataGrip, GoLand,
> IntelliJ IDEA, PhpStorm, PyCharm, Rider, RubyMine, and WebStorm.

[1]: https://blog.jetbrains.com/idea/2021/04/end-of-support-for-32-bit-operating-systems-in-intellij-based-ides/

(cherry picked from commit 147d36b4748f58d06bb813bd98f7287de82f92e2)
This commit is contained in:
Claudio Bley 2021-07-30 13:52:35 +02:00
parent 149875adc2
commit 8163847c78
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ with stdenv; lib.makeOverridable mkDerivation rec {
}
interpreter=$(echo ${stdenv.glibc.out}/lib/ld-linux*.so.2)
if [ "${stdenv.hostPlatform.system}" == "x86_64-linux" ]; then
if [[ "${stdenv.hostPlatform.system}" == "x86_64-linux" && -e bin/fsnotifier64 ]]; then
target_size=$(get_file_size bin/fsnotifier64)
patchelf --set-interpreter "$interpreter" bin/fsnotifier64
munge_size_hack bin/fsnotifier64 $target_size