Merge pull request #316625 from brahyerr/el-easydraw

emacsPackage.el-easydraw: 1.1.0 → 20240529.1009
This commit is contained in:
Lin Jian
2024-06-03 03:56:45 +08:00
committed by GitHub
@@ -2,22 +2,22 @@
, melpaBuild
, fetchFromGitHub
, writeText
, unstableGitUpdater
, writeScript
, gzip
}:
let
rev = "de68851724072c6695e675f090b33a8abec040c9";
rev = "13c9fa22155066acfb5a2e444fe76245738e7fb7";
in
melpaBuild {
pname = "edraw";
version = "1.1.0";
version = "20240529.1009";
src = fetchFromGitHub {
owner = "misohena";
repo = "el-easydraw";
inherit rev;
hash = "sha256-l9i+HCRKnKiDqID+bfAOPE7LpVBZp1AOPkceX8KbDXM=";
hash = "sha256-h2auwVIWjrOBPHPCuLdJv5y3FpoV4V+MEOPf4xprfYg=";
};
commit = rev;
@@ -33,7 +33,19 @@ melpaBuild {
"msg"))
'';
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/misohena/el-easydraw.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.el-easydraw $version --rev="$commit"
'';
meta = {
homepage = "https://github.com/misohena/el-easydraw";