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 subcomponents of exe build #968

Merged
merged 2 commits into from
Aug 15, 2022
Merged

Expose subcomponents of exe build #968

merged 2 commits into from
Aug 15, 2022

Conversation

madeline-os
Copy link
Collaborator

@madeline-os madeline-os commented Aug 15, 2022

Sometimes you want to build not the entire derivation for the obelisk
server, but just a piece of it, like the frontend. This PR exposes them
as subattributes of the full server derivation.

In particular:

backend
frontend (not turned into assets)
frontend-assets
static-assets

Example usage in an obelisk project:

nix-build -A exe.frontend-assets

This replaces #507 which had only minor merge conflicts, but I had already mostly transcribed it before picking up on that.

I have:

  • Based work on latest develop branch
  • Followed the contribution guide
  • Looked for lint in my changes with hlint . (lint found code you did not write can be left alone)
  • Run the test suite: $(nix-build -A selftest --no-out-link)
  • Updated the changelog
  • (Optional) Run CI tests locally: nix-build release.nix -A build.x86_64-linux --no-out-link (or x86_64-darwin on macOS)

Sometimes you want to build not the entire derivation for the obelisk
server, but just a piece of it, like the frontend. This PR exposes them
as subattributes of the full server derivation.

In particular:

  backend
  frontend (not turned into assets)
  frontend-assets
  static-assets

Example usage in an obelisk project:

```
nix-build -A exe.frontend-assets
```
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.

2 participants