mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 20:00:10 +00:00
niks3: cleanup (#549072)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user