niks3: cleanup (#549072)

This commit is contained in:
Adam C. Stephens
2026-08-04 14:51:23 +00:00
committed by GitHub

View File

@@ -4,11 +4,13 @@
fetchFromGitHub,
makeWrapper,
nix,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "niks3";
version = "1.8.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "Mic92";
@@ -29,7 +31,6 @@ buildGoModule (finalAttrs: {
ldflags = [
"-s"
"-w"
];
# The niks3 client shells out to `nix path-info` which differs between Nix and Lix; pinning Nix
@@ -38,10 +39,12 @@ buildGoModule (finalAttrs: {
wrapProgram $out/bin/niks3 --prefix PATH : ${lib.makeBinPath [ nix ]}
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "S3-backed Nix binary cache with garbage collection";
homepage = "https://github.com/Mic92/niks3";
changelog = "https://github.com/Mic92/niks3/releases/tag/v${finalAttrs.version}";
changelog = "https://github.com/Mic92/niks3/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
mic92