feat: add vencord overlay for updating early
This commit is contained in:
parent
ae42c7a3d0
commit
84fbc3b453
3 changed files with 21 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
||||||
nixpkgs.overlays = [
|
nixpkgs.overlays = [
|
||||||
(import ./swayosd.nix)
|
(import ./swayosd.nix)
|
||||||
(import ./blueberry.nix)
|
(import ./blueberry.nix)
|
||||||
|
(import ./vencord.nix)
|
||||||
|
|
||||||
(final: prev: {
|
(final: prev: {
|
||||||
spotifywm = final.callPackage ./pkgs/spotifywm.nix {};
|
spotifywm = final.callPackage ./pkgs/spotifywm.nix {};
|
||||||
|
|
12
common/overlays/vencord.nix
Normal file
12
common/overlays/vencord.nix
Normal 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=";
|
||||||
|
};
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
10
updateSha.sh
10
updateSha.sh
|
@ -4,11 +4,16 @@ parseNurl() {
|
||||||
REV=$(nurl -j "$1" | jq '.["args"].["rev"]')
|
REV=$(nurl -j "$1" | jq '.["args"].["rev"]')
|
||||||
HASH=$(nurl -j "$1" | jq '.["args"].["hash"]')
|
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
|
# 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/xresources
|
||||||
# https://github.com/dracula/plymouth
|
# https://github.com/dracula/plymouth
|
||||||
|
@ -44,4 +49,5 @@ doAll() {
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ "$1" == "-a" || "$1" == "--all" ]] && doAll
|
[[ "$1" == "-a" || "$1" == "--all" ]] && doAll
|
||||||
|
[[ "$1" == "-v" || "$1" == "--vencord" ]] && updateVencord
|
||||||
[[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons
|
[[ "$1" == "-f" || "$1" == "--firefox" ]] && updateFirefoxAddons
|
||||||
|
|
Loading…
Reference in a new issue