update pvlog
This commit is contained in:
@@ -12,7 +12,7 @@ buildGoModule rec {
|
|||||||
src = fetchGit {
|
src = fetchGit {
|
||||||
url = "gitolite@kopatz.dev:kop-pvlog.git";
|
url = "gitolite@kopatz.dev:kop-pvlog.git";
|
||||||
ref = "master";
|
ref = "master";
|
||||||
rev = "2bb67c4b27bba9b99cf2182f989a53bb7f346659";
|
rev = "e4063057b6e77c0b81d991cda8ad5225e2dbdf59";
|
||||||
};
|
};
|
||||||
vendorHash = "sha256-8wYERVt3PIsKkarkwPu8Zy/Sdx43P6g2lz2xRfvTZ2E=";
|
vendorHash = "sha256-8wYERVt3PIsKkarkwPu8Zy/Sdx43P6g2lz2xRfvTZ2E=";
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ set -e
|
|||||||
|
|
||||||
PACKAGE_FILE="default.nix" # Replace with your package file path
|
PACKAGE_FILE="default.nix" # Replace with your package file path
|
||||||
REPO_URL="gitolite@kopatz.dev:kop-pvlog.git" # Replace with the repository URL
|
REPO_URL="gitolite@kopatz.dev:kop-pvlog.git" # Replace with the repository URL
|
||||||
|
SCRIPT_DIR=$(dirname $(realpath $0))
|
||||||
|
|
||||||
echo "Fetching latest revision from $REPO_URL..."
|
echo "Fetching latest revision from $REPO_URL..."
|
||||||
|
|
||||||
@@ -14,7 +15,7 @@ latest_rev=$(nix-prefetch-git $REPO_URL | jq -r '.rev')
|
|||||||
echo "Latest revision: $latest_rev"
|
echo "Latest revision: $latest_rev"
|
||||||
|
|
||||||
# Update the package file with the new revision and sha256
|
# Update the package file with the new revision and sha256
|
||||||
sed -i "s|rev = \".*\";|rev = \"$latest_rev\";|" $PACKAGE_FILE
|
sed -i "s|rev = \".*\";|rev = \"$latest_rev\";|" "$SCRIPT_DIR"/$PACKAGE_FILE
|
||||||
|
|
||||||
echo "Package file $PACKAGE_FILE updated successfully."
|
echo "Package file $SCRIPT_DIR $PACKAGE_FILE updated successfully."
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user