diff --git a/pkgs/applications/editors/jetbrains/bin/linux.nix b/pkgs/applications/editors/jetbrains/bin/linux.nix index d26fb9847dfc..ca70c4e4cec5 100644 --- a/pkgs/applications/editors/jetbrains/bin/linux.nix +++ b/pkgs/applications/editors/jetbrains/bin/linux.nix @@ -69,7 +69,7 @@ with stdenv; lib.makeOverridable mkDerivation (rec { ln -s ${jdk.home} jbr if [ -d "plugins/remote-dev-server" ]; then - patch -p1 < ${../patches/jetbrains-remote-dev.patch} + patch -F3 -p1 < ${../patches/jetbrains-remote-dev.patch} fi vmopts_file=bin/linux/${vmoptsName} diff --git a/pkgs/applications/editors/jetbrains/patches/jetbrains-remote-dev.patch b/pkgs/applications/editors/jetbrains/patches/jetbrains-remote-dev.patch index f567795b4c64..7a1a66bf062f 100644 --- a/pkgs/applications/editors/jetbrains/patches/jetbrains-remote-dev.patch +++ b/pkgs/applications/editors/jetbrains/patches/jetbrains-remote-dev.patch @@ -10,8 +10,8 @@ SELFCONTAINED_LIBS="$REMOTE_DEV_SERVER_DIR/selfcontained/lib" if [ ! -d "$SELFCONTAINED_LIBS" ]; then @@ -596,3 +598,5 @@ - "$LAUNCHER" "$STARTER_COMMAND" "$@" - fi - fi + "$LAUNCHER" "$STARTER_COMMAND" "$PROJECT_PATH" "$@" + ;; + esac + +unset REMOTE_DEV_SERVER_USE_SELF_CONTAINED_LIBS