12 pname = "jetbrains-toolbox";
13 version = "2.1.0.18144";
16 url = "https://download.jetbrains.com/toolbox/jetbrains-toolbox-${version}.tar.gz";
17 sha256 = "sha256-K65naW+RWAy4uxQq2GQmL0kwCH+G73ez1kgTtnTwjEw=";
21 appimageContents = runCommand "${pname}-extracted"
23 nativeBuildInputs = [ appimageTools.appimage-exec ];
26 appimage-exec.sh -x $out ${src}/${pname}-${version}/${pname}
29 appimage = appimageTools.wrapAppImage {
30 inherit pname version;
31 src = appimageContents;
32 extraPkgs = pkgs: (appimageTools.defaultFhsEnvArgs.targetPkgs pkgs);
35 desktopItem = makeDesktopItem {
36 name = "JetBrains Toolbox";
37 exec = "jetbrains-toolbox";
38 comment = "JetBrains Toolbox";
39 desktopName = "JetBrains Toolbox";
41 icon = "jetbrains-toolbox";
43 categories = [ "Development" ];
44 startupWMClass = "jetbrains-toolbox";
45 startupNotify = false;
49 inherit pname version src appimage;
51 nativeBuildInputs = [ makeWrapper copyDesktopItems ];
56 install -Dm644 ${appimageContents}/.DirIcon $out/share/icons/hicolor/scalable/apps/jetbrains-toolbox.svg
57 makeWrapper ${appimage}/bin/${pname}-${version} $out/bin/${pname} \
58 --append-flags "--update-failed" \
59 --prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [icu]}
64 desktopItems = [ desktopItem ];
66 # Disabling the tests, this seems to be very difficult to test this app.
70 description = "Jetbrains Toolbox";
71 homepage = "https://jetbrains.com/";
72 license = licenses.unfree;
73 maintainers = with maintainers; [ AnatolyPopov ];
74 platforms = [ "x86_64-linux" ];