mirror of
https://github.com/nix-community/emacs-overlay.git
synced 2025-12-06 02:40:25 -08:00
emacs-lsp: bump + fix update script
This commit is contained in:
parent
c873175c2f
commit
00cdfbd36d
2 changed files with 4 additions and 3 deletions
|
|
@ -1 +1 @@
|
|||
{"type": "github", "owner": "emacs-lsp", "repo": "emacs", "rev": "f34bbbdc8561f5e361d7404c20280cb454051933", "sha256": "01hj0dl0ryz8b8p7g7qpl2hdjvnb1xwxh4hny91zkyz9s0qwf4xk", "version": "20221113.0"}
|
||||
{"type": "github", "owner": "emacs-lsp", "repo": "emacs", "rev": "f28010891665f1a2ebc9038a203e3ec870ce792c", "sha256": "01s6c29d2dggsk6088yibk3r9ifiz1xl9jbir2brcsllrba8cx4s", "version": "20221208.0"}
|
||||
|
|
|
|||
|
|
@ -25,6 +25,7 @@ function update_github_repo() {
|
|||
owner=$1
|
||||
repo=$2
|
||||
branch=$3
|
||||
output_name=$4
|
||||
echo $repo $branch
|
||||
|
||||
# Get relevant data (commit id and timestamp) for the latest commit
|
||||
|
|
@ -34,9 +35,8 @@ function update_github_repo() {
|
|||
commit_sha=$(echo $commit_data | cut -d '/' -f 2)
|
||||
version_number=$(echo $commit_data | cut -d '/' -f 3 | cut -d 'T' -f 1 | sed 's/-//g').0
|
||||
|
||||
output_branch=$(echo $branch | sed s/"\/"/"_"/)
|
||||
digest=$(nix-prefetch-url --unpack "https://github.com/$owner/$repo/archive/${commit_sha}.tar.gz")
|
||||
echo "{\"type\": \"github\", \"owner\": \"${owner}\", \"repo\": \"${repo}\", \"rev\": \"${commit_sha}\", \"sha256\": \"${digest}\", \"version\": \"${version_number}\"}" > $repo-$output_branch.json
|
||||
echo "{\"type\": \"github\", \"owner\": \"${owner}\", \"repo\": \"${repo}\", \"rev\": \"${commit_sha}\", \"sha256\": \"${digest}\", \"version\": \"${version_number}\"}" > $repo-$output_name.json
|
||||
}
|
||||
|
||||
function update_release() {
|
||||
|
|
@ -52,5 +52,6 @@ function update_release() {
|
|||
|
||||
update_savannah_branch master
|
||||
update_release
|
||||
update_github_repo emacs-lsp emacs json-rpc lsp
|
||||
|
||||
nix-build --no-out-link --show-trace ./test.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue