consul-alerts: migrate to buildGoModule

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2024-06-08 13:54:09 +02:00
parent d6261b6f04
commit 6a11289f14

View File

@ -1,21 +1,24 @@
{ lib, buildGoPackage, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGoPackage rec {
buildGoModule rec {
pname = "consul-alerts";
version = "0.6.0";
rev = "v${version}";
goPackagePath = "github.com/AcalephStorage/consul-alerts";
goDeps = ./deps.nix;
src = fetchFromGitHub {
inherit rev;
rev = "v${version}";
owner = "AcalephStorage";
repo = "consul-alerts";
sha256 = "0836zicv76sd6ljhbbii1mrzh65pch10w3gfa128iynaviksbgn5";
};
postPatch = ''
go mod init github.com/AcalephStorage/consul-alerts
'';
vendorHash = null;
doCheck = false;
meta = with lib; {
mainProgram = "consul-alerts";
description = "An extendable open source continuous integration server";