emacsPackages.eaf-git: init at 0-unstable-2025-07-10

This commit is contained in:
thattemperature
2025-08-18 17:53:14 +08:00
committed by Lin Jian
parent a171b82d78
commit 6b7378b1de
2 changed files with 87 additions and 0 deletions
@@ -19,6 +19,10 @@ lib.packagesFromDirectoryRecursive {
inherit (pkgs) aria2;
};
eaf-git = callPackage ./manual-packages/eaf-git {
inherit (pkgs) ripgrep;
};
elpaca = callPackage ./manual-packages/elpaca { inherit (pkgs) git; };
emacs-application-framework = callPackage ./manual-packages/emacs-application-framework {
@@ -0,0 +1,83 @@
{
# Basic
lib,
melpaBuild,
fetchFromGitHub,
# Dependencies
delta,
ripgrep,
# Java Script dependency
nodejs,
fetchNpmDeps,
npmHooks,
# Updater
nix-update-script,
}:
melpaBuild (finalAttrs: {
pname = "eaf-git";
version = "0-unstable-2025-07-10";
src = fetchFromGitHub {
owner = "emacs-eaf";
repo = "eaf-git";
rev = "24c3887075630a21d0a53ddb95b01ef70694f03a";
hash = "sha256-ggxgwMTk46WDLKxrNkzX3pSO/yLoLTJVH08T4o70fEM=";
};
env.npmDeps = fetchNpmDeps {
name = "${finalAttrs.pname}-npm-deps";
inherit (finalAttrs) src;
hash = "sha256-kbFnPZlFqoE1Q/KKVW5ZI4HPPWsIjXA/jne2jw7BeEc=";
};
nativeBuildInputs = [
nodejs
npmHooks.npmConfigHook
];
postBuild = ''
npm run build
'';
files = ''
("*.el"
"*.py"
"*.js"
"src")
'';
postInstall = ''
LISPDIR=$out/share/emacs/site-lisp/elpa/${finalAttrs.ename}-${finalAttrs.melpaVersion}
touch node_modules/.nosearch
cp -r node_modules $LISPDIR/
cp -r dist $LISPDIR/
'';
passthru = {
updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
eafPythonDeps =
ps: with ps; [
charset-normalizer
giturlparse
pygit2
pygments
unidiff
];
eafOtherDeps = [
delta
ripgrep
];
};
meta = {
description = "Git client for the EAF";
homepage = "https://github.com/emacs-eaf/eaf-git";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
thattemperature
];
};
})