diff options
author | Soispha <soispha@vhack.eu> | 2024-01-23 14:55:55 +0100 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2024-01-23 14:55:55 +0100 |
commit | d7d898d824ece694e71198a45a096f0175058ab1 (patch) | |
tree | 3e46f2865dcfc644f1c02955da3f491bfdda1e06 /sys/nixpkgs/pkgs/plgs-pkgs/update_neovim_plugins | |
parent | fix(hm/conf/less): Ensure that less can read the lesskey file (diff) | |
download | nixos-config-d7d898d824ece694e71198a45a096f0175058ab1.zip |
feat(sys/nixpkgs/pkgs): Add update scripts
Diffstat (limited to 'sys/nixpkgs/pkgs/plgs-pkgs/update_neovim_plugins')
-rwxr-xr-x | sys/nixpkgs/pkgs/plgs-pkgs/update_neovim_plugins | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sys/nixpkgs/pkgs/plgs-pkgs/update_neovim_plugins b/sys/nixpkgs/pkgs/plgs-pkgs/update_neovim_plugins deleted file mode 100755 index ea71c6fa..00000000 --- a/sys/nixpkgs/pkgs/plgs-pkgs/update_neovim_plugins +++ /dev/null @@ -1,26 +0,0 @@ -#!/usr/bin/env sh - -BASE_DIR="$(readlink -f "$(dirname "$0")/plugins")" - -# Fetch plugins -cd "$BASE_DIR" || (echo "BUG: No '$BASE_DIR'" && exit 1) - -# Cleanup manifest -sort -o "$BASE_DIR/manifest.txt" "$BASE_DIR/manifest.txt" -sort -o "$BASE_DIR/blacklist.txt" "$BASE_DIR/blacklist.txt" -## Remove all plugins, which are on the blacklist -echo "$(comm -23 "$BASE_DIR/manifest.txt" "$BASE_DIR/blacklist.txt")" > "$BASE_DIR/manifest.txt" - -# Backup vim-plugins.nix -mv "$BASE_DIR/default.nix" "$BASE_DIR/default.nix.bak" -echo "{...} : {}" > "$BASE_DIR/default.nix" - -# Generate derivations for new plugins (this binary is provided by the dev-environment) -update-vim-plugins cleanup "$BASE_DIR" - -# Restore vim-plugins.nix -mv "$BASE_DIR/default.nix.bak" "$BASE_DIR/default.nix" - - -# Update new plugins -update-vim-plugins update "$BASE_DIR" --all |