Skip to content

Conversation

@nmouha
Copy link
Contributor

@nmouha nmouha commented Nov 10, 2025

NOTE: Similar patch for mlkem-native: pq-code-package/mlkem-native#1295

The mldsa-native package fails to build on NixOS, because NixOS does not provide /bin/bash by default.

On NixOS, the recommended approach is to use /usr/bin/env bash because this makes it easier to install different versions of bash on the same system. (By letting PATH decide which binary to execute.) Note that /usr/bin/env bash is also the recommended approach on MacOS to use a newer bash version than the system-provided one.

I see that /usr/bin/env bash and /usr/bin/env python3 are already used in 15 locations (see for example: proofs/cbmc/list_proofs.sh). Therefore, I'm proposing to replace the remaining instances of /bin/bash to /usr/bin/env bash. So, this change not only fixes builds on NixOS, but is also more consistent.

@nmouha nmouha requested a review from a team as a code owner November 10, 2025 17:25
Copy link
Contributor

@mkannwischer mkannwischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for pointing this out @nmouha!

Let's port the entire pq-code-package/mlkem-native#1297 in one go.

@nmouha, do you want to give that a go? Otherwise, maybe @willieyz can take over.

@hanno-becker
Copy link
Contributor

Done in #690

@nmouha
Copy link
Contributor Author

nmouha commented Nov 12, 2025

Great! Thank you, @hanno-becker and @mkannwischer!

I'm closing this PR as it's superseded by #690.

@nmouha nmouha closed this Nov 12, 2025
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.

3 participants