Open source saturday

This commit is contained in:
Andrea Ciceri 2024-01-13 10:57:45 +01:00
parent bd1ec7b269
commit 371cc9dd13
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
4 changed files with 89 additions and 5 deletions

7
flake.lock generated
View file

@ -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"
}
},

View file

@ -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
View 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
];
}

View file

@ -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;
})]