jetbrains-toolbox: add update script

This commit is contained in:
ners
2024-11-05 09:16:52 +01:00
parent 8cbc3dfa0a
commit 1ca7aa2333
@@ -6,6 +6,8 @@
, runCommand
, appimageTools
, icu
, genericUpdater
, writeShellScript
}:
let
pname = "jetbrains-toolbox";
@@ -58,6 +60,13 @@ stdenv.mkDerivation {
# Disabling the tests, this seems to be very difficult to test this app.
doCheck = false;
passthru.updateScript = genericUpdater {
versionLister = writeShellScript "jetbrains-toolbox-versionLister" ''
curl -Ls 'https://data.services.jetbrains.com/products?code=TBA&release.type=release' \
| jq -r '.[] | .releases | flatten[] | .build'
'';
};
meta = with lib; {
description = "Jetbrains Toolbox";
homepage = "https://jetbrains.com/";