fix(update script): make sure it works for everything
This commit is contained in:
parent
7d6309897f
commit
e67236d0d9
4 changed files with 10 additions and 5 deletions
|
@ -10,7 +10,7 @@ stdenv.mkDerivation {
|
||||||
owner = "dracula";
|
owner = "dracula";
|
||||||
repo = "xresources";
|
repo = "xresources";
|
||||||
rev = "539ef24e9b0c5498a82d59bfa2bad9b618d832a3";
|
rev = "539ef24e9b0c5498a82d59bfa2bad9b618d832a3";
|
||||||
sha256 = "sha256-6fltsAluqOqYIh2NX0I/LC3WCWkb9Fn8PH6LNLBQbrY=";
|
hash = "sha256-6fltsAluqOqYIh2NX0I/LC3WCWkb9Fn8PH6LNLBQbrY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
|
|
@ -14,7 +14,7 @@ stdenv.mkDerivation rec {
|
||||||
owner = "tio";
|
owner = "tio";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "6c35040e6fc4f65ce0519ee76d00d60490bcb987";
|
rev = "6c35040e6fc4f65ce0519ee76d00d60490bcb987";
|
||||||
sha256 = "sha256-Im0RADqRwlZ/RiZFSVp+HwnWoLdcpRp0Ej6RP0GY0+c=";
|
hash = "sha256-Im0RADqRwlZ/RiZFSVp+HwnWoLdcpRp0Ej6RP0GY0+c=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
@ -19,7 +19,7 @@ stdenv.mkDerivation rec {
|
||||||
owner = "mishakmak";
|
owner = "mishakmak";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "45b42524fb5783e1e555067743d7e0f70d27888a";
|
rev = "45b42524fb5783e1e555067743d7e0f70d27888a";
|
||||||
sha256 = "sha256-obczZbf/oH4xGaVvp3y3ZyDdYhZnxlCWvL0irgEYIi0=";
|
hash = "sha256-obczZbf/oH4xGaVvp3y3ZyDdYhZnxlCWvL0irgEYIi0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
|
|
@ -74,8 +74,13 @@ updateGSR() {
|
||||||
(
|
(
|
||||||
cd /tmp || return
|
cd /tmp || return
|
||||||
|
|
||||||
|
if [[ ! -d "gpu-screen-recorder" ]]; then
|
||||||
git clone https://repo.dec05eba.com/gpu-screen-recorder
|
git clone https://repo.dec05eba.com/gpu-screen-recorder
|
||||||
cd gpu-screen-recorder || return
|
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)")
|
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
|
URL=https://dec05eba.com/snapshot/gpu-screen-recorder.git."$REV".tar.gz
|
||||||
|
|
Loading…
Reference in a new issue