about summary refs log tree commit diff
path: root/overlays/patches/emacs/overlay/repos/emacs
diff options
context:
space:
mode:
Diffstat (limited to 'overlays/patches/emacs/overlay/repos/emacs')
-rw-r--r--overlays/patches/emacs/overlay/repos/emacs/emacs-lsp.json1
-rw-r--r--overlays/patches/emacs/overlay/repos/emacs/emacs-master.json1
-rw-r--r--overlays/patches/emacs/overlay/repos/emacs/emacs-unstable.json1
-rw-r--r--overlays/patches/emacs/overlay/repos/emacs/test.nix13
-rwxr-xr-xoverlays/patches/emacs/overlay/repos/emacs/update57
5 files changed, 0 insertions, 73 deletions
diff --git a/overlays/patches/emacs/overlay/repos/emacs/emacs-lsp.json b/overlays/patches/emacs/overlay/repos/emacs/emacs-lsp.json
deleted file mode 100644
index aca9eb10dd1b..000000000000
--- a/overlays/patches/emacs/overlay/repos/emacs/emacs-lsp.json
+++ /dev/null
@@ -1 +0,0 @@
-{"type": "github", "owner": "emacs-lsp", "repo": "emacs", "rev": "f28010891665f1a2ebc9038a203e3ec870ce792c", "sha256": "01s6c29d2dggsk6088yibk3r9ifiz1xl9jbir2brcsllrba8cx4s", "version": "20221208.0"}
diff --git a/overlays/patches/emacs/overlay/repos/emacs/emacs-master.json b/overlays/patches/emacs/overlay/repos/emacs/emacs-master.json
deleted file mode 100644
index 4fa1b7b28ef8..000000000000
--- a/overlays/patches/emacs/overlay/repos/emacs/emacs-master.json
+++ /dev/null
@@ -1 +0,0 @@
-{"type": "savannah", "repo": "emacs", "rev": "f2aae8b879baa4986b69af7ee54fe4eb987b99d6", "sha256": "19zvv2xc3ymv5ji11yr8in04j8mfbslrdrg7fds42r476bf59fib", "version": "20230615.0"}
diff --git a/overlays/patches/emacs/overlay/repos/emacs/emacs-unstable.json b/overlays/patches/emacs/overlay/repos/emacs/emacs-unstable.json
deleted file mode 100644
index 07781adae7b7..000000000000
--- a/overlays/patches/emacs/overlay/repos/emacs/emacs-unstable.json
+++ /dev/null
@@ -1 +0,0 @@
-{"type": "savannah", "repo": "emacs", "rev": "emacs-29.0.91", "sha256": "09jm1q5pvd1dc0xq5rhn66v1j235zlr72kwv5i27xigvi9nfqkv1", "version": "29.0.91"}
diff --git a/overlays/patches/emacs/overlay/repos/emacs/test.nix b/overlays/patches/emacs/overlay/repos/emacs/test.nix
deleted file mode 100644
index 1fc3ac5b0a90..000000000000
--- a/overlays/patches/emacs/overlay/repos/emacs/test.nix
+++ /dev/null
@@ -1,13 +0,0 @@
-{ pkgs ? import <nixpkgs> { overlays = [ (import ../../default.nix) ]; } }:
-
-let
-  mkTestBuild = package: let
-    emacsPackages = pkgs.emacsPackagesFor package;
-    emacsWithPackages = emacsPackages.emacsWithPackages;
-  in emacsWithPackages(epkgs: [ ]);
-
-in {
-  emacsUnstable = mkTestBuild pkgs.emacsUnstable;
-  emacsGit = mkTestBuild pkgs.emacsGit;
-  emacsPgtk = mkTestBuild pkgs.emacsPgtk;
-}
diff --git a/overlays/patches/emacs/overlay/repos/emacs/update b/overlays/patches/emacs/overlay/repos/emacs/update
deleted file mode 100755
index 89a5421104ec..000000000000
--- a/overlays/patches/emacs/overlay/repos/emacs/update
+++ /dev/null
@@ -1,57 +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_savannah_branch() {
-    branch=$1
-    echo emacs $branch
-
-    # Get relevant data (commit id and timestamp) for the latest commit
-    commit_data=$(curl "https://git.savannah.gnu.org/cgit/emacs.git/atom/?h=$branch" | 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 1)
-    version_number=$(echo $commit_data | cut -d '/' -f 2 | cut -d 'T' -f 1 | sed 's/-//g').0
-
-    output_branch=$(echo $branch | sed s/"\/"/"_"/)
-    digest=$(nix-prefetch-url --unpack "https://git.savannah.gnu.org/cgit/emacs.git/snapshot/emacs-${commit_sha}.tar.gz")
-    echo "{\"type\": \"savannah\", \"repo\": \"emacs\", \"rev\": \"${commit_sha}\", \"sha256\": \"${digest}\", \"version\": \"${version_number}\"}" > emacs-$output_branch.json
-}
-
-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
-    commit_data=$(curl "https://github.com/$owner/$repo/commits/$branch.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 "{\"type\": \"github\", \"owner\": \"${owner}\", \"repo\": \"${repo}\", \"rev\": \"${commit_sha}\", \"sha256\": \"${digest}\", \"version\": \"${version_number}\"}" > $repo-$output_name.json
-}
-
-function update_release() {
-    echo emacs release
-
-    tag=$(git ls-remote --tags --refs --sort=-v:refname https://git.savannah.gnu.org/git/emacs.git 'emacs-[1-9]*' | grep -Eo 'emacs-.*' | grep -v '\-rc' | head -n1)
-
-    digest=$(nix-prefetch-url --unpack "https://git.savannah.gnu.org/cgit/emacs.git/snapshot/${tag}.tar.gz")
-    version_number=$(echo $tag | cut -d '-' -f 2)
-
-    echo "{\"type\": \"savannah\", \"repo\": \"emacs\", \"rev\": \"${tag}\", \"sha256\": \"${digest}\", \"version\": \"${version_number}\"}" > emacs-unstable.json
-}
-
-update_savannah_branch master
-update_release
-update_github_repo emacs-lsp emacs json-rpc lsp
-
-nix-build --no-out-link --show-trace ./test.nix