From 0baf24e956aae850b6a593d66241f005ee5cfe71 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Sat, 11 Oct 2025 19:01:01 +0200 Subject: [PATCH] update presence --- pkgs/scheibnkleister-presence/default.nix | 2 +- pkgs/scheibnkleister-presence/update.sh | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100755 pkgs/scheibnkleister-presence/update.sh diff --git a/pkgs/scheibnkleister-presence/default.nix b/pkgs/scheibnkleister-presence/default.nix index 896a565..1191793 100644 --- a/pkgs/scheibnkleister-presence/default.nix +++ b/pkgs/scheibnkleister-presence/default.nix @@ -10,7 +10,7 @@ buildNpmPackage rec { src = fetchGit { url = "git@github.com:oberprofis/scheibnkleister-presence.git"; ref = "master"; - rev = "b31f6954fc0cf44db4f4ccdab5ae1d4611de1d31"; + rev = "0bfd6980fed0e04e6587c1c5cd78a866d152f282"; }; forceGitDeps = true; diff --git a/pkgs/scheibnkleister-presence/update.sh b/pkgs/scheibnkleister-presence/update.sh new file mode 100755 index 0000000..fba1f3e --- /dev/null +++ b/pkgs/scheibnkleister-presence/update.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p jq nix-prefetch-git + +set -e + +PACKAGE_FILE="default.nix" # Replace with your package file path +REPO_URL="git@github.com:oberprofis/scheibnkleister-presence.git" # Replace with the repository URL + +echo "Fetching latest revision from $REPO_URL..." + +# Get the latest revision and sha256 +latest_rev=$(nix-prefetch-git $REPO_URL | jq -r '.rev') + +echo "Latest revision: $latest_rev" + +# Update the package file with the new revision and sha256 +sed -i "s|rev = \".*\";|rev = \"$latest_rev\";|" $PACKAGE_FILE + +echo "Package file $PACKAGE_FILE updated successfully." +