feat: add vencord overlay for updating early

This commit is contained in:
matt1432 2023-10-25 14:29:31 -04:00
parent ae42c7a3d0
commit 84fbc3b453
3 changed files with 21 additions and 2 deletions

View file

@ -9,6 +9,7 @@
nixpkgs.overlays = [
(import ./swayosd.nix)
(import ./blueberry.nix)
(import ./vencord.nix)
(final: prev: {
spotifywm = final.callPackage ./pkgs/spotifywm.nix {};

View file

@ -0,0 +1,12 @@
final: prev: {
vencord = prev.vencord.overrideAttrs (oldAttrs: rec {
src = prev.fetchFromGitHub {
owner = "Vendicated";
repo = "Vencord";
rev = "3bd657611cbc6b3cf3142ae59c39713922d167df";
hash = "sha256-fbYHfyPYN7LH9NlOpeEa10rA9LEibhxj9ZHmOZabETc=";
};
});
}

View file

@ -4,11 +4,16 @@ parseNurl() {
REV=$(nurl -j "$1" | jq '.["args"].["rev"]')
HASH=$(nurl -j "$1" | jq '.["args"].["hash"]')
echo $REV $HASH
sed -i "s/rev = .*/rev = $REV;/" "$2"
sed -i "s/hash = .*/hash = $HASH;/" "$2"
}
updateVencord() {
parseNurl https://github.com/Vendicated/Vencord /home/matt/.nix/common/overlays/vencord.nix
}
# TODO
parseNurl "https://github.com/lukas-reineke/indent-blankline.nvim"
#parseNurl "https://github.com/lukas-reineke/indent-blankline.nvim"
# https://github.com/dracula/xresources
# https://github.com/dracula/plymouth
@ -44,4 +49,5 @@ doAll() {
}
[[ "$1" == "-a" || "$1" == "--all" ]] && doAll
[[ "$1" == "-v" || "$1" == "--vencord" ]] && updateVencord
[[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons