[PR #136] [MERGED] Extract package name and version from Cargo.toml #298

Closed
opened 2026-05-05 22:16:09 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/feschber/lan-mouse/pull/136
Author: @ICE-GB
Created: 5/22/2024
Status: Merged
Merged: 5/22/2024
Merged by: @feschber

Base: mainHead: feat-nix


📝 Commits (2)

  • 5c1c084 chore: nix flake update
  • 7996040 feat: Extract package name and version from Cargo.toml

📊 Changes

2 files changed (+15 additions, -11 deletions)

View changed files

📝 flake.lock (+6 -6)
📝 nix/default.nix (+9 -5)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/feschber/lan-mouse/pull/136 **Author:** [@ICE-GB](https://github.com/ICE-GB) **Created:** 5/22/2024 **Status:** ✅ Merged **Merged:** 5/22/2024 **Merged by:** [@feschber](https://github.com/feschber) **Base:** `main` ← **Head:** `feat-nix` --- ### 📝 Commits (2) - [`5c1c084`](https://github.com/feschber/lan-mouse/commit/5c1c0843e0cf1fd1c5a9956fa680d5d6da0fee80) chore: nix flake update - [`7996040`](https://github.com/feschber/lan-mouse/commit/7996040b33f117cbeb156feab729abb7bfc6b4a6) feat: Extract package name and version from Cargo.toml ### 📊 Changes **2 files changed** (+15 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `flake.lock` (+6 -6) 📝 `nix/default.nix` (+9 -5) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 22:16:09 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#298
No description provided.