mirror of
https://github.com/nix-community/emacs-overlay.git
synced 2025-12-06 02:40:25 -08:00
Initial commit
This commit is contained in:
commit
797e2b4547
4 changed files with 64 additions and 0 deletions
15
update
Executable file
15
update
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env nix-shell
|
||||
#! nix-shell -i bash -p curl jq nix
|
||||
set -euxo pipefail
|
||||
|
||||
function update_repo() {
|
||||
repo=$1
|
||||
echo $repo
|
||||
|
||||
commit_sha=$(curl "https://api.github.com/repos/ch11ng/$repo/commits?sha=master" | jq -r 'first.sha')
|
||||
digest=$(nix-prefetch-url --unpack "https://github.com/ch11ng/$repo/archive/${commit_sha}.tar.gz")
|
||||
echo "{\"rev\": \"${commit_sha}\", \"sha256\": \"${digest}\"}" > repos/$repo.json
|
||||
}
|
||||
|
||||
update_repo exwm
|
||||
update_repo xelb
|
||||
Loading…
Add table
Add a link
Reference in a new issue