nixpkgs-suyu/pkgs/misc
Sean Chalmers 9321785bab vscode-extensions: script to generate Nix for "latest" version of all installed vscode extensions
Added better practices to update_exts script.

Use `jq` instead of `grep` for more reliable JSON querying.

Check for 404 when requesting package.json information to avoid mangled
output.

Added proper failure points for missing vscode package, unknown version,
and if the code executable couldn't be found.

Switched to using a `nix-shell` shebang for even better reliability and
use the `sh` shell to be that little bit more generic.

Script is still clunky and sequential, anything more and I'd need to
write a proper program to do this and that's getting a bit silly? But
people that have a dozen or so extensions might be in for a long wait.

Be explicit about using bash

Improve the use of jq to remove unnecessary use of tr. Hat-tip coretemp.

Add some comments, finally.

Remove the `fetch` function.

Change the `get_ver` function to more accurately demonstrate what it is trying
to do, as well as add in some better error handling for non-200 http responses.

I couldn't make the bash `${param/search/replacement}` work for chopping up the
response in the `get_ver` function, hence the use of `sed`. Hopefully it all
makes a bit more sense now.

Remove github requests.

VSIXPackage is just a zip format in disguise so use a tmpdir and unpackage the
package.json file for the file in question so we can get the precise version
that we're interested in without additional redundant calls to github that may
not provide the right answer anyway.

Add trap to try to clean up the temp folders and clean up as we go.

I can't use 'fetchurl' or even 'nix-prefetch-url' because for the former we
don't yet know the hash that we're after and for the latter there isn't a way to
tie the predownloaded file into the next part of the workflow.

Prevent an unnecessary file from being extracted.

Change the unzip command to read the file we're after to stdout so we can use jq
on it directly instead of creating a file, reading it, then deleting it.

Courtesy of worldofpeace, remove the dependency on coreutils and use the
provided nix-hash function to generate the required hash.

Fix up a comment

Remove use of 'awk' and clean up individual Nix printing with cat to EOF expression.
2018-08-07 10:14:57 +10:00
..
apulse apulse: 0.1.11 -> 0.1.11 git, enable tracing by default 2018-03-09 20:48:24 +00:00
arm-trusted-firmware armTrustedFirmware: Disable parallel build 2018-03-23 19:03:26 +02:00
base16-builder nodePackages: regenerate with node2nix 1.6.0 2018-06-28 23:26:44 +02:00
beep Revert "beep: fix for CVE-2018-0492" 2018-04-20 08:50:31 +08:00
brightnessctl brightnessctl: fix permissions 2018-06-18 20:06:54 +10:00
calaos/installer calaos_installer: init at 3.1 2018-03-18 11:53:41 +01:00
cups cups-toshiba-estudio: 7.51 -> 7.89 (#43850) 2018-07-29 21:51:47 +02:00
documentation-highlighter nixos docs: syntax highlight 2018-04-05 07:54:01 -04:00
drivers xwiimote: add license 2018-07-22 16:56:08 +02:00
emulators dolphinEmuMaster: 2018-07-02 -> 2018-07-22 2018-07-30 09:42:53 -07:00
foldingathome treewide: remove platform assertions 2018-05-03 13:09:20 -05:00
frescobaldi frescobaldi: 2.0.16 -> 3.0.0; fix build 2018-03-31 17:03:17 +02:00
ghostscript pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
gnash gnome3.gconf: remove 2018-07-10 12:14:40 +02:00
gnuk
jackaudio pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
libcardiacarrest libcardiacarrest: 11.0-6 -> 12.1-6 (#43697) 2018-07-18 21:06:26 +02:00
lilypond pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
logging/beats elk: 6.2.4 -> 6.3.2 2018-07-28 00:01:31 +02:00
lollypop-portal lollypop-portal: add version 2018-07-22 06:25:56 -04:00
long-shebang
mnemonicode
mxt-app mxt-app: limit platforms to linux 2018-07-05 23:35:49 +02:00
my-env pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
phabricator pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
riscv-pk riscv-pk: Set platforms properly 2018-03-24 08:44:26 -04:00
sailsd
screensavers alock: add license 2018-07-22 17:20:32 +02:00
seafile-shared seafile-shared: 6.2.2 -> 6.2.3 2018-07-30 23:49:22 +02:00
solfege
sound-of-sorting
source-and-tags source-and-tags: fix default.nix 2018-04-24 23:12:40 +02:00
stabber stabber: init at 2016-11-09 2018-03-19 11:03:45 +01:00
talkfilters
themes plano-theme: 3.28-1 -> 3.28-2 (#44128) 2018-07-29 21:15:14 +02:00
tmux-plugins adds tmuxPlugins 2018-03-11 17:47:36 +09:00
tw-rs
uboot pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
urbit treewide: http -> https (#42665) 2018-06-27 22:12:57 +02:00
vim-plugins vim-plugins: add extra plugins 2018-07-26 00:37:14 +02:00
vscode-extensions vscode-extensions: script to generate Nix for "latest" version of all installed vscode extensions 2018-08-07 10:14:57 +10:00
xosd