refactor custom emacs packages
This commit is contained in:
parent
ed7eb9fb62
commit
79105e12f7
4 changed files with 44 additions and 34 deletions
|
|
@ -10,40 +10,7 @@
|
||||||
builtins.readFile ./config/lisp/utils.el;
|
builtins.readFile ./config/lisp/utils.el;
|
||||||
extraPackages = epkgs:
|
extraPackages = epkgs:
|
||||||
let
|
let
|
||||||
myEpkgs = epkgs.overrideScope (final: prev: {
|
myEpkgs = epkgs.overrideScope (import ./pkgs { inherit pkgs; });
|
||||||
shell-maker = prev.shell-maker.overrideAttrs (_: {
|
|
||||||
version = "0.90.1";
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "xenodium";
|
|
||||||
repo = "shell-maker";
|
|
||||||
rev = "55f829d179608a3c4b11e86427713d5be7c4bb58";
|
|
||||||
hash = "sha256-tFzyVXxgrR6LOPUhX4MgJNLy3PX+pwprjdYi+IZXr+E=";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
agent-shell = final.melpaBuild {
|
|
||||||
pname = "agent-shell";
|
|
||||||
ename = "agent-shell";
|
|
||||||
version = "0.47.3";
|
|
||||||
|
|
||||||
src = pkgs.fetchFromGitHub {
|
|
||||||
owner = "xenodium";
|
|
||||||
repo = "agent-shell";
|
|
||||||
rev = "v0.50.1";
|
|
||||||
hash = "sha256-y3WKd7w9zNebNlP3phMLmMbrFd+MHqwwJH/dUP6VSlo=";
|
|
||||||
};
|
|
||||||
|
|
||||||
packageRequires = with final; [
|
|
||||||
acp
|
|
||||||
shell-maker
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = "https://github.com/xenodium/agent-shell";
|
|
||||||
description = "Native agentic integrations for Claude Code, Gemini CLI, etc";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
});
|
|
||||||
in
|
in
|
||||||
with myEpkgs; [
|
with myEpkgs; [
|
||||||
agent-shell
|
agent-shell
|
||||||
|
|
|
||||||
23
flakes/emacs/pkgs/agent-shell.nix
Normal file
23
flakes/emacs/pkgs/agent-shell.nix
Normal file
|
|
@ -0,0 +1,23 @@
|
||||||
|
{ pkgs, final }:
|
||||||
|
final.melpaBuild {
|
||||||
|
pname = "agent-shell";
|
||||||
|
ename = "agent-shell";
|
||||||
|
version = "0.47.3";
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "xenodium";
|
||||||
|
repo = "agent-shell";
|
||||||
|
rev = "v0.50.1";
|
||||||
|
hash = "sha256-y3WKd7w9zNebNlP3phMLmMbrFd+MHqwwJH/dUP6VSlo=";
|
||||||
|
};
|
||||||
|
|
||||||
|
packageRequires = with final; [
|
||||||
|
acp
|
||||||
|
shell-maker
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://github.com/xenodium/agent-shell";
|
||||||
|
description = "Native agentic integrations for Claude Code, Gemini CLI, etc";
|
||||||
|
};
|
||||||
|
}
|
||||||
10
flakes/emacs/pkgs/default.nix
Normal file
10
flakes/emacs/pkgs/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ pkgs }:
|
||||||
|
final: prev: {
|
||||||
|
shell-maker = import ./shell-maker.nix {
|
||||||
|
inherit pkgs prev;
|
||||||
|
};
|
||||||
|
|
||||||
|
agent-shell = import ./agent-shell.nix {
|
||||||
|
inherit pkgs final;
|
||||||
|
};
|
||||||
|
}
|
||||||
10
flakes/emacs/pkgs/shell-maker.nix
Normal file
10
flakes/emacs/pkgs/shell-maker.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{ pkgs, prev }:
|
||||||
|
prev.shell-maker.overrideAttrs (_: {
|
||||||
|
version = "0.90.1";
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "xenodium";
|
||||||
|
repo = "shell-maker";
|
||||||
|
rev = "55f829d179608a3c4b11e86427713d5be7c4bb58";
|
||||||
|
hash = "sha256-tFzyVXxgrR6LOPUhX4MgJNLy3PX+pwprjdYi+IZXr+E=";
|
||||||
|
};
|
||||||
|
})
|
||||||
Loading…
Add table
Add a link
Reference in a new issue