jetbrains: add update script wrapper

The main script only does a single program, and requires being fed the
name. This is a wrapper to get those names.
This commit is contained in:
xeals 2021-01-25 15:26:57 +11:00
parent fb2bbf59d0
commit 010665a5c9
Signed by: xeals
GPG Key ID: A498C7AF27EC6B5C
2 changed files with 38 additions and 0 deletions

View File

@ -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:

View File

@ -0,0 +1,26 @@
{ pkgs ? import <nixpkgs> { } }:
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;
};
}