Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize with packages in headers from package and tests #283

Open
psionic-k opened this issue Dec 15, 2022 · 2 comments
Open

Initialize with packages in headers from package and tests #283

psionic-k opened this issue Dec 15, 2022 · 2 comments

Comments

@psionic-k
Copy link

Within a well-formed elisp package, we know where all the headers are. If all requirments for the package and its tests are in headers, there's no need to update nix expressions manually after adding new package-requires information.

Probably I can implement this. Stop me if there's a better solution.

@akirak
Copy link

akirak commented Dec 16, 2022

@psionic-k AFAIK this has been already done. See recipes-archive-melpa.json. There is deps field, and the file is automatically generated by the script in the directory. You can find other scripts in pkgs/applications/editors/emacs/elisp-packages in nixpkgs. Except for manual packages, it's automated.

@psionic-k
Copy link
Author

@akirak I should have mentioned emacsWithPackagesFromUsePackage. It looks super close to what I need. I'm not sure.

Use case is for CI, so I need to discover the elisp files within the package repository.

The repo motivating this issue:
https://github.com/positron-solutions/elisp-repo-kit/tree/finish-first-release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants