[PR #25] [MERGED] Add flake for build and devshell. #82

Closed
opened 2025-11-19 07:13:30 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/fosrl/newt/pull/25
Author: @firecat53
Created: 3/25/2025
Status: Merged
Merged: 3/30/2025
Merged by: @oschwartz10612

Base: mainHead: flake


📝 Commits (1)

  • 7852f11 Add flake for build and devshell.

📊 Changes

3 files changed (+102 additions, -0 deletions)

View changed files

📝 README.md (+10 -0)
flake.lock (+27 -0)
flake.nix (+65 -0)

📄 Description

Add nix flake for building and development shell.

Package named newt-pangolin to avoid conflicts with existing NixOS package name.

Community Contribution License Agreement

By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.

Description

For Nix/NixOS users, adds a flake.nix to allow building and creating a
development shell environment with some golang tools installed.

How to test?

With Nix installed: nix build. The newt binary will be created in
result/bin/. To enter a development shell, nix develop. The tools listed in
the flake.nix will be available (go, golint, gopls, etc.).

When the version updates, update version = "xxx"; and then nix build. It
will give you the updated vendorHash value to update in flake.nix.


🔄 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/fosrl/newt/pull/25 **Author:** [@firecat53](https://github.com/firecat53) **Created:** 3/25/2025 **Status:** ✅ Merged **Merged:** 3/30/2025 **Merged by:** [@oschwartz10612](https://github.com/oschwartz10612) **Base:** `main` ← **Head:** `flake` --- ### 📝 Commits (1) - [`7852f11`](https://github.com/fosrl/newt/commit/7852f11e8db26207432d50b34570fbca070e8098) Add flake for build and devshell. ### 📊 Changes **3 files changed** (+102 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+10 -0) ➕ `flake.lock` (+27 -0) ➕ `flake.nix` (+65 -0) </details> ### 📄 Description Add nix flake for building and development shell. Package named newt-pangolin to avoid conflicts with existing NixOS package name. ## Community Contribution License Agreement By creating this pull request, I grant the project maintainers an unlimited, perpetual license to use, modify, and redistribute these contributions under any terms they choose, including both the AGPLv3 and the Fossorial Commercial license terms. I represent that I have the right to grant this license for all contributed content. ## Description For Nix/NixOS users, adds a flake.nix to allow building and creating a development shell environment with some golang tools installed. ## How to test? With Nix installed: nix build. The newt binary will be created in result/bin/. To enter a development shell, nix develop. The tools listed in the flake.nix will be available (go, golint, gopls, etc.). When the version updates, update version = "xxx"; and then nix build. It will give you the updated vendorHash value to update in flake.nix. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-19 07:13:30 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#82