Merge pull request #318257 from katexochen/consul-alerts/mods

consul-alerts: migrate to buildGoModule
This commit is contained in:
Paul Meyer 2024-06-21 10:28:30 +02:00 committed by GitHub
commit 3688b2e901
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 = "Extendable open source continuous integration server";