mirror of
https://github.com/fosrl/newt.git
synced 2026-03-09 07:12:28 -05:00
[PR #25] [MERGED] Add flake for build and devshell. #82
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:flake📝 Commits (1)
7852f11Add 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.