diff --git a/pkgs/applications/editors/jetbrains/update-jetbrains b/pkgs/applications/editors/jetbrains/update-jetbrains new file mode 100755 index 0000000..398f4bb --- /dev/null +++ b/pkgs/applications/editors/jetbrains/update-jetbrains @@ -0,0 +1,12 @@ +#!/usr/bin/env nix-shell +#!nix-shell --show-trace ./updater.nix -i bash + +set -e + +for app in $APPS; do + ./updater-jetbrains $app -o ${app#-[0-9.]*}-generated.nix +done + +# Local Variables: +# mode: sh +# End: diff --git a/pkgs/applications/editors/jetbrains/updater.nix b/pkgs/applications/editors/jetbrains/updater.nix new file mode 100644 index 0000000..5456e9c --- /dev/null +++ b/pkgs/applications/editors/jetbrains/updater.nix @@ -0,0 +1,26 @@ +{ pkgs ? import { } }: +let + inherit (pkgs.stdenv) lib; +in +pkgs.mkShell { + buildInputs = [ + pkgs.bash + ]; + + APPS = lib.mapAttrsToList + (k: v: v.name) + { + inherit (pkgs.jetbrains) + clion + datagrip + goland + idea-community + idea-ultimate + phpstorm + pycharm-community + pycharm-professional + rider + ruby-mine + webstorm; + }; +}