This commit is contained in:
Andrea Ciceri 2023-10-03 01:23:50 +02:00
parent 7feed73965
commit d53973ef9a
No known key found for this signature in database
5 changed files with 78 additions and 13 deletions

View file

@ -4,20 +4,30 @@ with epkgs; let
depsPerPackage = {
indent-bars = [compat];
"chatgpt" = [polymode];
chatgpt = [polymode];
copilot = [editorconfig dash s];
};
overrideAttrsPerPackage = {
copilot = old: {
postInstall = ''
cp -r "$src/dist" "$LISPDIR"
'';
};
};
# *Attrset* containig extra emacs packages from flake inputs
extraPackages = lib.mapAttrs (inputName: input: let
deps = depsPerPackage.${inputName} or [];
in
trivialBuild {
build = trivialBuild {
pname = inputName;
src = input.outPath;
version = input.shortRev;
propagatedUserEnvPkgs = deps;
buildInputs = deps;
})
};
in
build.overrideAttrs (overrideAttrsPerPackage.${inputName} or (_: _)))
pkgs.extra-package-inputs;
# *List* containing emacs packages from (M)ELPA