From e67236d0d9f2381cf6eb981804dafeac349edde3 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 13 Dec 2023 19:31:01 -0500 Subject: [PATCH] fix(update script): make sure it works for everything --- common/overlays/dracula-theme/xresources.nix | 2 +- common/pkgs/input-emulator/default.nix | 2 +- common/pkgs/pam-fprint-grosshack/default.nix | 2 +- updateSha.sh | 9 +++++++-- 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/common/overlays/dracula-theme/xresources.nix b/common/overlays/dracula-theme/xresources.nix index c78179b..866cf5d 100644 --- a/common/overlays/dracula-theme/xresources.nix +++ b/common/overlays/dracula-theme/xresources.nix @@ -10,7 +10,7 @@ stdenv.mkDerivation { owner = "dracula"; repo = "xresources"; rev = "539ef24e9b0c5498a82d59bfa2bad9b618d832a3"; - sha256 = "sha256-6fltsAluqOqYIh2NX0I/LC3WCWkb9Fn8PH6LNLBQbrY="; + hash = "sha256-6fltsAluqOqYIh2NX0I/LC3WCWkb9Fn8PH6LNLBQbrY="; }; installPhase = '' diff --git a/common/pkgs/input-emulator/default.nix b/common/pkgs/input-emulator/default.nix index 0373712..5d71383 100644 --- a/common/pkgs/input-emulator/default.nix +++ b/common/pkgs/input-emulator/default.nix @@ -14,7 +14,7 @@ stdenv.mkDerivation rec { owner = "tio"; repo = pname; rev = "6c35040e6fc4f65ce0519ee76d00d60490bcb987"; - sha256 = "sha256-Im0RADqRwlZ/RiZFSVp+HwnWoLdcpRp0Ej6RP0GY0+c="; + hash = "sha256-Im0RADqRwlZ/RiZFSVp+HwnWoLdcpRp0Ej6RP0GY0+c="; }; nativeBuildInputs = [ diff --git a/common/pkgs/pam-fprint-grosshack/default.nix b/common/pkgs/pam-fprint-grosshack/default.nix index 7f590b9..21d4f2c 100644 --- a/common/pkgs/pam-fprint-grosshack/default.nix +++ b/common/pkgs/pam-fprint-grosshack/default.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation rec { owner = "mishakmak"; repo = pname; rev = "45b42524fb5783e1e555067743d7e0f70d27888a"; - sha256 = "sha256-obczZbf/oH4xGaVvp3y3ZyDdYhZnxlCWvL0irgEYIi0="; + hash = "sha256-obczZbf/oH4xGaVvp3y3ZyDdYhZnxlCWvL0irgEYIi0="; }; nativeBuildInputs = [ diff --git a/updateSha.sh b/updateSha.sh index 3155ee7..98e4bd4 100755 --- a/updateSha.sh +++ b/updateSha.sh @@ -74,8 +74,13 @@ updateGSR() { ( cd /tmp || return - git clone https://repo.dec05eba.com/gpu-screen-recorder - cd gpu-screen-recorder || return + if [[ ! -d "gpu-screen-recorder" ]]; then + git clone https://repo.dec05eba.com/gpu-screen-recorder + cd gpu-screen-recorder || return + else + cd gpu-screen-recorder || return + git pull + fi REV=$(printf "r%s.%s\n" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)") URL=https://dec05eba.com/snapshot/gpu-screen-recorder.git."$REV".tar.gz