From 52a0b44a49f0e7f10fb50e304e949905a869b099 Mon Sep 17 00:00:00 2001 From: x123 Date: Tue, 19 Nov 2024 18:55:05 +0100 Subject: [PATCH] certstream-server-go: init at 1.7.0 --- .../ce/certstream-server-go/package.nix | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/ce/certstream-server-go/package.nix diff --git a/pkgs/by-name/ce/certstream-server-go/package.nix b/pkgs/by-name/ce/certstream-server-go/package.nix new file mode 100644 index 0000000000000..67a4c417505f6 --- /dev/null +++ b/pkgs/by-name/ce/certstream-server-go/package.nix @@ -0,0 +1,36 @@ +{ + buildGoModule, + certstream-server-go, + fetchFromGitHub, + lib, + nix-update-script, + testers, +}: +buildGoModule rec { + pname = "certstream-server-go"; + version = "1.7.0"; + + src = fetchFromGitHub { + owner = "d-Rickyy-b"; + repo = "certstream-server-go"; + rev = "v${version}"; + hash = "sha256-iA4kwhGvAkRL0cMCfo0mdQYUZbWk3Y8xdb7jjjTaRFM="; + }; + + vendorHash = "sha256-S5uF+i5Qsgi3M7B7LbO7CDO2GkWXn4X8wK/hgSSedHo="; + + passthru = { + updateScript = nix-update-script {}; + }; + + ldflags = ["-s" "-w"]; + + meta = { + description = "Drop-in replacement in Golang for the certstream server by Calidog"; + homepage = "https://github.com/d-Rickyy-b/certstream-server-go"; + changelog = "https://github.com/d-Rickyy-b/certstream-server-go/blob/${src.rev}/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [x123]; + mainProgram = "certstream-server-go"; + }; +}