Hi,
In Nixos packages intellij ultimate is older and a new version of intellij idea(2024.1) is released, how can I get it in my nixos pc? I am using flakes and installed it using system packages. Please help.
Thank you.
Hi,
In Nixos packages intellij ultimate is older and a new version of intellij idea(2024.1) is released, how can I get it in my nixos pc? I am using flakes and installed it using system packages. Please help.
Thank you.
IDEA has just been updated in Nixpkgs. It should be available with the next unstable-channel update.
Great, thank you. But is there a way to get the latest version when the version is old in Nixos packages?
In general you can override the src attribute in the existing package to (locally) create a package of the updated version. For the Jetbrains products: These have slightly more elaborate structure and are usually updated in bulk.
The easiest way would be to check out the Nixpkgs repo, run the Jetbrains updater script and use the local repo for rebuilding. If things work fine, you can contribute back by opening a PR with the update.
You can use two flake inputs: nixpkgs
(referring to stable) and nixpkgs-unstable
(referring to nixos-unstable).
In your NixOS config, you can then consume clion, intellij and whatnot from nixpkgs-unstable
as I did here while the general system still comes from the stable nixpkgs version: nixos-configs/common/modules/user-env/programs/gui/default.nix at dd99692257603ea20e2df9ee3ebd1411791a0c99 · phip1611/nixos-configs · GitHub
You could also use jetbrains-toolbox
!
correct, but for some reason, apps installed through toolbox are not runnig/starting.
Going to test that right now.
Toolbox runs inside an fhs environment with all the libraries needed for IDEA, so you can’t just use the generated shortcuts to launch the IDEs installed, you need to use toolbox to launch them too.
If you want to use the shortcuts directly, you’ll need to set up nix-ld with the following libraries:
programs.nix-ld.enable = true;
programs.nix-ld.libraries = with pkgs; [
SDL
SDL2
SDL2_image
SDL2_mixer
SDL2_ttf
SDL_image
SDL_mixer
SDL_ttf
alsa-lib
at-spi2-atk
at-spi2-core
atk
bzip2
cairo
cups
curlWithGnuTls
dbus
dbus-glib
desktop-file-utils
e2fsprogs
expat
flac
fontconfig
freeglut
freetype
fribidi
fuse
fuse3
gdk-pixbuf
glew110
glib
gmp
gst_all_1.gst-plugins-base
gst_all_1.gst-plugins-ugly
gst_all_1.gstreamer
gtk2
harfbuzz
icu
keyutils.lib
libGL
libGLU
libappindicator-gtk2
libcaca
libcanberra
libcap
libclang.lib
libdbusmenu
libdrm
libgcrypt
libgpg-error
libidn
libjack2
libjpeg
libmikmod
libogg
libpng12
libpulseaudio
librsvg
libsamplerate
libthai
libtheora
libtiff
libudev0-shim
libusb1
libuuid
libvdpau
libvorbis
libvpx
libxcrypt-legacy
libxkbcommon
libxml2
mesa
nspr
nss
openssl
p11-kit
pango
pixman
python3
speex
stdenv.cc.cc
tbb
udev
vulkan-loader
wayland
xorg.libICE
xorg.libSM
xorg.libX11
xorg.libXScrnSaver
xorg.libXcomposite
xorg.libXcursor
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXft
xorg.libXi
xorg.libXinerama
xorg.libXmu
xorg.libXrandr
xorg.libXrender
xorg.libXt
xorg.libXtst
xorg.libXxf86vm
xorg.libpciaccess
xorg.libxcb
xorg.xcbutil
xorg.xcbutilimage
xorg.xcbutilkeysyms
xorg.xcbutilrenderutil
xorg.xcbutilwm
xorg.xkeyboardconfig
xz
zlib
];
Source: JetBrains applications/products installed using JetBrains Toolbox won't start · Issue #240444 · NixOS/nixpkgs · GitHub
It’s a bit of a dirty solution but it makes the shortcuts work properly.
I also updated the wiki article with nix-ld a while ago… Jetbrains Tools - NixOS Wiki