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:
parent
fb2bbf59d0
commit
010665a5c9
12
pkgs/applications/editors/jetbrains/update-jetbrains
Executable file
12
pkgs/applications/editors/jetbrains/update-jetbrains
Executable 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:
|
26
pkgs/applications/editors/jetbrains/updater.nix
Normal file
26
pkgs/applications/editors/jetbrains/updater.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user