nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 42 lines 907 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6 7buildGoModule rec { 8 pname = "pingme"; 9 version = "0.2.6"; 10 11 src = fetchFromGitHub { 12 owner = "kha7iq"; 13 repo = "pingme"; 14 rev = "v${version}"; 15 hash = "sha256-i+EZ3HfuxHSuZDe0+nfZVvoNZN5XcdQFwfgOg4OLBOs="; 16 }; 17 18 vendorHash = "sha256-fEJII8qSDIbMNhRfuYUsRA1AmOXR27iHpBPNCDFI4xQ="; 19 20 # bump go version 21 preBuild = '' 22 substituteInPlace go.mod \ 23 --replace-fail 'go 1.16' 'go 1.21' 24 go mod tidy 25 ''; 26 proxyVendor = true; 27 28 ldflags = [ 29 "-s" 30 "-w" 31 "-X=main.Version=${version}" 32 ]; 33 34 meta = { 35 changelog = "https://github.com/kha7iq/pingme/releases/tag/${src.rev}"; 36 description = "Send messages or alerts to multiple messaging platforms & email"; 37 homepage = "https://pingme.lmno.pk"; 38 license = lib.licenses.mit; 39 mainProgram = "pingme"; 40 maintainers = with lib.maintainers; [ emilytrau ]; 41 }; 42}