From 8163847c7878719bfbe36a265979d5ef19d7229c Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Fri, 30 Jul 2021 13:52:35 +0200 Subject: [PATCH] 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) --- pkgs/applications/editors/jetbrains/common.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/editors/jetbrains/common.nix b/pkgs/applications/editors/jetbrains/common.nix index 635a8dbf46f..0b5810d928c 100644 --- a/pkgs/applications/editors/jetbrains/common.nix +++ b/pkgs/applications/editors/jetbrains/common.nix @@ -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