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

[DRAFT] Generate scripts programmatically using Nix #19

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

youwen5
Copy link

@youwen5 youwen5 commented Feb 1, 2025

This MR is not yet ready but I'm opening it as a draft to make it visible to upstream. Currently we can generate all pure scripts directly using Nix (here pure refers to not relying on any transient machine state). Prominently, the build.sh script and source.sh scripts are not pure so we cannot generate those directly.

The current plan is to write a pure configure script (e.g. arcturus-configure) that copies these scripts into the correct location when ran. This script could be ran manually, or as a devshell enterHook. This way we can still avoid configuration drifts between the shell scripts and Nix while allowing impure build scripts to be generated. The end goal of course is to make all scripts pure, so this is a stopgap solution.

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.

1 participant