update ente
This commit is contained in:
@@ -7,7 +7,7 @@ buildNpmPackage rec {
|
|||||||
src = "${(fetchGit {
|
src = "${(fetchGit {
|
||||||
url = "git@github.com:oberprofis/ente.git";
|
url = "git@github.com:oberprofis/ente.git";
|
||||||
ref = "master";
|
ref = "master";
|
||||||
rev = "c8021cc1162dfa509425205014cc5e55ca6086d7";
|
rev = "c85e0e152c4f69f5dae5e06ef33360f7ee5fa0c9";
|
||||||
})}/website/tracker-site";
|
})}/website/tracker-site";
|
||||||
npmDepsHash = "sha256-CMgFHB1gSGagE4QWwTIgWLat698vHBnuGk/Qe4HfYnc=";
|
npmDepsHash = "sha256-CMgFHB1gSGagE4QWwTIgWLat698vHBnuGk/Qe4HfYnc=";
|
||||||
|
|
||||||
|
|||||||
20
pkgs/ente-frontend/update.sh
Executable file
20
pkgs/ente-frontend/update.sh
Executable file
@@ -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/ente.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."
|
||||||
|
|
||||||
Reference in New Issue
Block a user