Open source saturday
This commit is contained in:
parent
bd1ec7b269
commit
371cc9dd13
4 changed files with 89 additions and 5 deletions
7
flake.lock
generated
7
flake.lock
generated
|
@ -71,16 +71,17 @@
|
|||
"extra-package-copilot": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1704710633,
|
||||
"narHash": "sha256-qUl4weCMi2TPLwVokvH/I/pvN1bnB6HzjYgTiQqUpL8=",
|
||||
"lastModified": 1704184504,
|
||||
"narHash": "sha256-Vt+3OZM89dyLKjFnODWNHLDwrURXAtY5MFugyfEMbho=",
|
||||
"owner": "zerolfx",
|
||||
"repo": "copilot.el",
|
||||
"rev": "09c600549f8c962db4dc3ad847ed936f22132fe1",
|
||||
"rev": "1542d76909636bf8804dd9c770f28818a897cfdc",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "zerolfx",
|
||||
"repo": "copilot.el",
|
||||
"rev": "1542d76909636bf8804dd9c770f28818a897cfdc",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -27,7 +27,9 @@
|
|||
flake = false;
|
||||
};
|
||||
extra-package-copilot = {
|
||||
url = "github:zerolfx/copilot.el";
|
||||
# TODO remove rev when jsonrpc 1.0.23 hits emacs 29
|
||||
# https://github.com/copilot-emacs/copilot.el/issues/232
|
||||
url = "github:zerolfx/copilot.el/1542d76909636bf8804dd9c770f28818a897cfdc";
|
||||
flake = false;
|
||||
};
|
||||
extra-package-notmuch-notify = {
|
||||
|
|
75
packages/eaf.nix
Normal file
75
packages/eaf.nix
Normal file
|
@ -0,0 +1,75 @@
|
|||
{ melpaBuild
|
||||
, fetchFromGitHub
|
||||
, writeText
|
||||
, pkgs
|
||||
|
||||
# Elisp dependencies
|
||||
, ctable
|
||||
, deferred
|
||||
, epc
|
||||
, s
|
||||
|
||||
# Native dependencies
|
||||
, nodejs
|
||||
, python3
|
||||
, wmctrl
|
||||
, xdotool
|
||||
}:
|
||||
|
||||
let
|
||||
# TODO: Package nodejs environment
|
||||
|
||||
pythonEnv = ((python3.withPackages(ps: [
|
||||
ps.pyqtwebengine
|
||||
ps.pyqt5
|
||||
ps.qrcode
|
||||
ps.qtconsole
|
||||
ps.retry
|
||||
ps.pymupdf
|
||||
# Wrap native dependencies in python env $PATH
|
||||
pkgs.aria2
|
||||
])).override { ignoreCollisions = true; });
|
||||
|
||||
node = "${nodejs}/bin/node";
|
||||
|
||||
pname = "eaf";
|
||||
version = "20210309.0";
|
||||
|
||||
in melpaBuild {
|
||||
|
||||
inherit pname version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "emacs-eaf";
|
||||
repo = "emacs-application-framework";
|
||||
rev = "d55fef029d9a8fa529d2290f2da178dc8ff3d6f7";
|
||||
sha256 = "sha256-0UGeo4I4JB95A8W870x4IS6Syh6roMomjTTNQNGbS3E";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
dontBuild = true;
|
||||
|
||||
postPatch = ''
|
||||
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/emacs/site-lisp/elpa/emacs-$pname-$version
|
||||
cp -rv * $out/share/emacs/site-lisp/elpa/emacs-$pname-$version/
|
||||
'';
|
||||
|
||||
recipe = writeText "recipe" ''
|
||||
(eaf
|
||||
:repo "manateelazycat/emacs-application-framework"
|
||||
:fetcher github
|
||||
:files ("*")
|
||||
'';
|
||||
|
||||
packageRequires = [
|
||||
ctable
|
||||
deferred
|
||||
epc
|
||||
s
|
||||
];
|
||||
|
||||
}
|
|
@ -102,4 +102,10 @@ pkgs: epkgs: let
|
|||
corfu-terminal
|
||||
]);
|
||||
in
|
||||
mainPackages ++ (builtins.attrValues extraPackages)
|
||||
mainPackages
|
||||
++ (builtins.attrValues extraPackages)
|
||||
# Playing with EAF
|
||||
++ [(pkgs.callPackage ./eaf.nix {
|
||||
inherit (epkgs) melpaBuild;
|
||||
inherit (melpaPackages) ctable deferred epc s;
|
||||
})]
|
||||
|
|
Reference in a new issue