Merge pull request #306163 from kira-bruneau/emacsPackages.acm-terminal

emacsPackages.acm-terminal: 20230601.1326 -> 20231206.1141
This commit is contained in:
Kira Bruneau 2024-04-24 15:55:17 -04:00 committed by GitHub
commit 6ed521a058
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 17 additions and 5 deletions

View File

@ -4,21 +4,21 @@
, acm
, popon
, writeText
, unstableGitUpdater
, writeScript
}:
let
rev = "0dbbd7f401da1bedd1a9146df6127233d601435b";
rev = "1851d8fa2a27d3fd8deeeb29cd21c3002b8351ba";
in
melpaBuild {
pname = "acm-terminal";
version = "20230601.1326"; # 13:26 UTC
version = "20231206.1141";
src = fetchFromGitHub {
owner = "twlz0ne";
repo = "acm-terminal";
inherit rev;
sha256 = "sha256-Opouy9A6z0YUT1zxZq1yHx+r/hwNE93JDwfa1fMWNgc=";
sha256 = "sha256-EYhFrOo0j0JSNTdcZCbyM0iLxaymUXi1u6jZy8lTOaY=";
};
commit = rev;
@ -32,7 +32,19 @@ melpaBuild {
(acm-terminal :repo "twlz0ne/acm-terminal" :fetcher github)
'';
passthru.updateScript = unstableGitUpdater { };
passthru.updateScript = writeScript "update.sh" ''
#!/usr/bin/env nix-shell
#!nix-shell -i bash -p common-updater-scripts coreutils git gnused
set -eu -o pipefail
tmpdir="$(mktemp -d)"
git clone --depth=1 https://github.com/twlz0ne/acm-terminal.git "$tmpdir"
pushd "$tmpdir"
commit=$(git show -s --pretty='format:%H')
# Based on: https://github.com/melpa/melpa/blob/2d8716906a0c9e18d6c979d8450bf1d15dd785eb/package-build/package-build.el#L523-L533
version=$(TZ=UTC git show -s --pretty='format:%cd' --date='format-local:%Y%m%d.%H%M' | sed 's|\.0*|.|')
popd
update-source-version emacsPackages.acm-terminal $version --rev="$commit"
'';
meta = with lib; {
description = "Patch for LSP bridge acm on Terminal";