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

Expose a function to build a single Emacs Lisp package #178

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

akirak
Copy link
Member

@akirak akirak commented Sep 19, 2024

This PR officially (though the library API may be changed in the future) exposes the function for building a single Emacs Lisp package, from the lib entry point of the flake.

The function should take two arguments: pkgs, i.e. nixpkgs.legacyPackages.${system}, and an attribute value from packageInputs in the config.

@terlar I am not sure if you still need this, but is it supposed to fix #65?

@akirak akirak force-pushed the expose-build-function branch from 193d493 to 2981ad0 Compare September 19, 2024 13:48
@terlar
Copy link

terlar commented Sep 19, 2024

Thank you, this is still relevant to me, I will check if I can replace trivialBuild with this one.

@akirak
Copy link
Member Author

akirak commented Sep 19, 2024

I will check if I can replace trivialBuild with this one

This function produces a derivation that follows certain conventions. Source files will be built and installed to share/emacs/site-lisp directory, so it would still require some workarounds if you use it to compile init.el.

@akirak akirak merged commit cc1e51e into master Sep 19, 2024
2 checks passed
@akirak akirak deleted the expose-build-function branch September 19, 2024 17:11
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

Successfully merging this pull request may close these issues.

Expose build function to make custom derivations
2 participants