mirror of
https://github.com/fosrl/newt.git
synced 2026-05-13 06:05:22 -05:00
[PR #184] [MERGED] fix(nix): resolve issues and revamp the flake #955
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/184
Author: @water-sucks
Created: 12/4/2025
Status: ✅ Merged
Merged: 12/4/2025
Merged by: @oschwartz10612
Base:
main← Head:nix-fixes-this📝 Commits (7)
d981a82chore(nix): use nixpkgs-unstable branch and update flake inputsc7d6562fix(nix): replace version string sub with ldflags, use gitignore on src09568c1fix(nix): use correct hash for vendored deps8db50d9refactor(nix): remove with keyword antipatternf9fb13achore(nix): add water-sucks to maintainers liste27e6fbfeat(nix): disable cgo for the newt package15b40b0chore(nix): sync to latest version number for newt package📊 Changes
2 files changed (+37 additions, -21 deletions)
View changed files
📝
flake.lock(+4 -4)📝
flake.nix(+33 -17)📄 Description
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
This fixes up some inconsistencies and regressions with the Nix flake in this repository.
nixpkgswas 1.24, while the current required toolchain version is 1.25.nixpkgsfunction that automatically filters ALL files found in.gitignoretransparently.Additionally, I decided to follow Nix best practices and avoid antipatterns such as
with, as described in https://nix.dev/guides/best-practices; instead,inheritis used whenever possible.I also took the liberty of adding myself as a maintainer for the Nix package, and will likely do so in
nixpkgsas well for future updates, since over there the Nix version is still stuck on 1.5.2, rather than the latest 1.6.0, again at time of writing.How to test?
Build the Nix package using
nix build, and also drop into the Nix devshell usingnix developto make sure the correct version of Go and all other Go SDK tooling is still available.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.