about summary refs log tree commit diff
path: root/overlays/patches/emacs/overlay/repos/exwm/update
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-06-16 09:13:56 +0000
committerAlyssa Ross <hi@alyssa.is>2023-08-05 09:19:22 +0000
commit7517820d73ff3edcc8da721931aeeaf206929650 (patch)
tree32ddc2dd9ecba9f377b914bb84a719e560a4ee6e /overlays/patches/emacs/overlay/repos/exwm/update
parent99fcaeccb89621dd492203ce1f2d551c06f228ed (diff)
parentf95c33d692cc174df41e40330aec4abf2a94b673 (diff)
downloadnixlib-7517820d73ff3edcc8da721931aeeaf206929650.tar
nixlib-7517820d73ff3edcc8da721931aeeaf206929650.tar.gz
nixlib-7517820d73ff3edcc8da721931aeeaf206929650.tar.bz2
nixlib-7517820d73ff3edcc8da721931aeeaf206929650.tar.lz
nixlib-7517820d73ff3edcc8da721931aeeaf206929650.tar.xz
nixlib-7517820d73ff3edcc8da721931aeeaf206929650.tar.zst
nixlib-7517820d73ff3edcc8da721931aeeaf206929650.zip
Merge https://github.com/nix-community/emacs-overlay
Diffstat (limited to 'overlays/patches/emacs/overlay/repos/exwm/update')
-rwxr-xr-xoverlays/patches/emacs/overlay/repos/exwm/update27
1 files changed, 0 insertions, 27 deletions
diff --git a/overlays/patches/emacs/overlay/repos/exwm/update b/overlays/patches/emacs/overlay/repos/exwm/update
deleted file mode 100755
index 97971d6058e3..000000000000
--- a/overlays/patches/emacs/overlay/repos/exwm/update
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env nix-shell
-#! nix-shell -i bash -p curl xmlstarlet nix coreutils
-set -euxo pipefail
-
-SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )"
-cd $SCRIPTPATH
-
-function update_repo() {
-    owner=$1
-    repo=$2
-    echo $repo
-
-    # Get relevant data (commit id and timestamp) for the latest commit
-    commit_data=$(curl "https://github.com/$owner/$repo/commits/master.atom" | xmlstarlet sel -N atom="http://www.w3.org/2005/Atom" -t -m /atom:feed/atom:entry -v "concat(atom:id,'/',atom:updated)" -n | head -n 1)
-
-    # Extract commit sha and build a version number based on date: YYYYMMDD.0
-    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
-
-    digest=$(nix-prefetch-url --unpack "https://github.com/$owner/$repo/archive/${commit_sha}.tar.gz")
-    echo "{\"rev\": \"${commit_sha}\", \"sha256\": \"${digest}\", \"version\": \"${version_number}\"}" > $repo.json
-}
-
-update_repo ch11ng exwm
-update_repo ch11ng xelb
-
-nix-build --no-out-link --show-trace ./test.nix