Intellij ultimate in nixos aarch64-linux on Macbook m1

I was able to build intellij using derivations/binary:

{ pkgs ? import <nixpkgs> {} }:

with pkgs;

stdenv.mkDerivation rec {
  pname = "intellij-ultimate";
  version = "2023.2.3";

  src = ./ideaIU-2023.2.3-aarch64.tar.gz;

  nativeBuildInputs = [ autoPatchelfHook makeWrapper ];  # Added autoPatchelfHook

  buildInputs = [ 
    jre 
    alsaLib 
    openssl 
    zlib 
    pulseaudio 
    glibc 
    libxcrypt 
    linux-pam 
    audit 
    cups 
    xorg.libXext 
    xorg.libX11 
    libxcrypt-legacy.out 
    ];

  sourceRoot = ".";

  dontBuild = true;

  installPhase = ''
    mkdir -p $out/bin
    cp -r idea-IU-232.10072.27/* $out/
    ln -s $out/bin/idea.sh $out/bin/intellij-ultimate
  '';

  # Removed the manual patchelf commands, as autoPatchelfHook will handle it
  postFixup = "";
preFixup = ''
    addAutoPatchelfSearchPath ${libxcrypt-legacy.out}/lib/
'';



  meta = with lib; {
    homepage = "https://www.jetbrains.com/idea/";
    description = "IntelliJ IDEA Ultimate Edition";
    license = licenses.unfree;
    platforms = platforms.linux;
  };
}

but when i run idea.sh after i get this:

[uzi@uzi:/nix/store/ciyqmq116rfn97d2w3rpx4iwyadik9iz-intellij-ultimate-2023.2.3/bin]$ ./idea.sh
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x0000000000000000, pid=122267, tid=122283
#
# JRE version:  (17.0.8.1+7) (build )
# Java VM: OpenJDK 64-Bit Server VM (17.0.8.1+7-b1000.32, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
# Problematic frame:
# C  0x0000000000000000
#
# Core dump will be written. Default location: Core dumps may be processed with "/nix/store/759blpvz2hp7ldgj7d9n6xi0gcrgwbq4-systemd/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /nix/store/ciyqmq116rfn97d2w3rpx4iwyadik9iz-intellij-ultimate-2023.2.3/bin/core.122267)
#
JNI global refs:
JNI global refs: 0, weak refs: 0

JNI global refs memory usage: 0, weak refs: 0

OOME stack traces (most recent first):
Classloader memory used:
Loader bootstrap                                                                       : 557B

# An error report file with more information is saved as:
# /home/uzi/java_error_in_idea_122267.log
#
#

[error occurred during error reporting (), id 0x6, SIGABRT (0x6) at pc=0x0000ffffab0601d0]

Aborted (core dumped)

Great news, only 2 days back the awesome nixos Devs have made intellij ultimate compatible and available for aarch64-linux in the unstable channel