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

[ enhancement ] update buildIdris Nix function to support withSource retroactively #3469

Conversation

mattpolzin
Copy link
Collaborator

Description

This updates the existing buildIdris Nix function so that its outputs (both library and executable) support a withSource passthru attribute that can be used to get the given derivation and all of its dependencies built with sourcecode included after-the-fact. This means you don't need to decide up front -- a library can easily be built without source by default and then asked for its withSource variant specifically for a developer shell environment.

I've PRed similar changes to nixpkgs and I've been testing these changes in nix-idris2-packages for a while now.

Should this change go in the CHANGELOG?

  • If this is a fix, user-facing change, a compiler change, or a new paper
    implementation, I have updated CHANGELOG_NEXT.md (and potentially also
    CONTRIBUTORS.md).

@mattpolzin mattpolzin merged commit 8e420d6 into idris-lang:main Jan 21, 2025
22 checks passed
@mattpolzin mattpolzin deleted the build-idris-retroactive-with-src-support branch January 21, 2025 13:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant