pingme: 0.2.6 -> 0.2.7

This commit is contained in:
Aaron Jheng
2026-03-23 15:02:00 +08:00
parent e23feebdb9
commit e56ccc46eb
+8 -11
View File
@@ -2,28 +2,21 @@
lib,
buildGoModule,
fetchFromGitHub,
testers,
}:
buildGoModule (finalAttrs: {
pname = "pingme";
version = "0.2.6";
version = "0.2.7";
src = fetchFromGitHub {
owner = "kha7iq";
repo = "pingme";
rev = "v${finalAttrs.version}";
hash = "sha256-i+EZ3HfuxHSuZDe0+nfZVvoNZN5XcdQFwfgOg4OLBOs=";
hash = "sha256-KqXnekhgWlebfkUzKfwqy3ouawfdTRb1M8QKN+TJNh8=";
};
vendorHash = "sha256-fEJII8qSDIbMNhRfuYUsRA1AmOXR27iHpBPNCDFI4xQ=";
# bump go version
preBuild = ''
substituteInPlace go.mod \
--replace-fail 'go 1.16' 'go 1.21'
go mod tidy
'';
proxyVendor = true;
vendorHash = "sha256-NpSgVUbft2chKdRwE6n5kwhAZMmVVa6NCWkxWL3wCac=";
ldflags = [
"-s"
@@ -31,6 +24,10 @@ buildGoModule (finalAttrs: {
"-X=main.Version=${finalAttrs.version}"
];
passthru.tests.version = testers.testVersion {
package = finalAttrs.finalPackage;
};
meta = {
changelog = "https://github.com/kha7iq/pingme/releases/tag/${finalAttrs.src.rev}";
description = "Send messages or alerts to multiple messaging platforms & email";