feat(nix): create bash script to update stuff and update indent-blankline-nvim
This commit is contained in:
parent
967c2aa2e2
commit
47fba6cb75
2 changed files with 48 additions and 2 deletions
|
@ -100,8 +100,8 @@ in
|
||||||
dracula-nvim
|
dracula-nvim
|
||||||
(plugin "lukas-reineke"
|
(plugin "lukas-reineke"
|
||||||
"indent-blankline.nvim"
|
"indent-blankline.nvim"
|
||||||
"1e79f3dd6e750c5cb4ce99d1755a3e17025c0f47"
|
"0fe34b4c1b926e106d105d3ae88ef6cbf6743572"
|
||||||
"sha256-YhfMeA+bnXlGSZPNsK1rRls9iMXUlXYKVFjHwXlnE4E=")
|
"sha256-e8gn4pJYALaQ6sGA66SFf8p6VLJBPxT/BimQhOd5eBs=")
|
||||||
gitsigns-nvim
|
gitsigns-nvim
|
||||||
lualine-nvim
|
lualine-nvim
|
||||||
minimap-vim
|
minimap-vim
|
||||||
|
|
46
nixos/updateSha.sh
Executable file
46
nixos/updateSha.sh
Executable file
|
@ -0,0 +1,46 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
parseNurl() {
|
||||||
|
REV=$(nurl -j "$1" | jq '.["args"].["rev"]')
|
||||||
|
HASH=$(nurl -j "$1" | jq '.["args"].["hash"]')
|
||||||
|
|
||||||
|
echo $REV $HASH
|
||||||
|
}
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
parseNurl "https://github.com/lukas-reineke/indent-blankline.nvim"
|
||||||
|
|
||||||
|
# https://github.com/dracula/xresources
|
||||||
|
# https://github.com/dracula/plymouth
|
||||||
|
# https://github.com/dracula/gtk
|
||||||
|
|
||||||
|
# https://gitlab.com/mishakmak/pam-fprint-grosshack
|
||||||
|
# https://github.com/tio/input-emulator
|
||||||
|
|
||||||
|
# https://github.com/ErikReider/SwayOSD
|
||||||
|
|
||||||
|
updateFirefoxAddons() {
|
||||||
|
echo "Updating firefox addons using mozilla-addons-to-nix"
|
||||||
|
|
||||||
|
(cd /home/matt/.nix/nixos/home/firefox/addons || return;
|
||||||
|
|
||||||
|
file=generated-firefox-addons.nix
|
||||||
|
if [[ -f $file ]]; then
|
||||||
|
printf "\nOld versions: \n"
|
||||||
|
|
||||||
|
grep -A 1 --no-group-separator 'pname' "$file" |
|
||||||
|
awk '{ gsub(/"/, ""); gsub(/;/, ""); print $3 }' |
|
||||||
|
awk 'NR%2{printf $0" version ";next;}1' | paste -sd'\n' -
|
||||||
|
|
||||||
|
printf "\nNew versions: \n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mozilla-addons-to-nix addons.json generated-firefox-addons.nix)
|
||||||
|
}
|
||||||
|
|
||||||
|
doAll() {
|
||||||
|
updateFirefoxAddons
|
||||||
|
}
|
||||||
|
|
||||||
|
[[ "$1" == "-a" || "$1" == "--all" ]] && doAll
|
||||||
|
[[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons
|
Loading…
Reference in a new issue