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

Extract package name and version from Cargo.toml #136

Merged
merged 2 commits into from
May 22, 2024

Conversation

ICE-GB
Copy link
Contributor

@ICE-GB ICE-GB commented May 22, 2024

Extract package name and version from Cargo.toml

  • Use builtins.readFile to read Cargo.toml contents.
  • Parse TOML content with builtins.fromTOML to extract package.name and package.version.
  • Apply extracted values to set pname and version in the Nix build derivation.

@feschber
Copy link
Owner

Thank you, I totally forgot to update the version... Sorry about that

@feschber feschber merged commit 5fd3b71 into feschber:main May 22, 2024
7 checks passed
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.

None yet

2 participants