git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #42542 from nh2/consul-alerts-0.5.0

consul-alerts: 0.3.3 -> 0.5.0

commit580f9d78fdf8ca2e7884d61aad8349fc969ebcdc authorlewo <lewo@abesis.fr> dateMon 25 Jun 2018, 18:08 (8 years ago) parentbda7c2f44c22ef
2 files changed+47−2
pkgs/servers/monitoring/consul-alerts/default.nix+13−2 pkgs/servers/monitoring/consul-alerts/deps.nix+34
pkgs/servers/monitoring/consul-alerts/default.nix+13−2
@@ -2,15 +2,26 @@
22
33buildGoPackage rec {
44 name = "consul-alerts-${version}";
5− version = "0.3.3";
5+ version = "0.5.0";
66 rev = "v${version}";
77
88 goPackagePath = "github.com/AcalephStorage/consul-alerts";
99
10+ goDeps = ./deps.nix;
11+
1012 src = fetchFromGitHub {
1113 inherit rev;
1214 owner = "AcalephStorage";
1315 repo = "consul-alerts";
14− sha256 = "1w0mb20w1yazyh84sa30bsw271c5nm7lsx2qg0g3gf6mxdb63lpq";
16+ sha256 = "0dff2cpk3lkgjsh97rvlrpacpka0kwm29691diyvj7lb9ydzlx3r";
17+ };
18+
19+ meta = with stdenv.lib; {
20+ description = "An extendable open source continuous integration server";
21+ homepage = https://github.com/AcalephStorage/consul-alerts;
22+ # As per README
23+ platforms = platforms.linux ++ platforms.freebsd ++ platforms.darwin;
24+ license = licenses.gpl2;
25+ maintainers = with maintainers; [ nh2 ];
1526 };
1627}
pkgs/servers/monitoring/consul-alerts/deps.nixnew file+34
@@ -0,0 +1,34 @@
1+let
2+ mkAwsPackage = name: {
3+ goPackagePath = "github.com/aws/aws-sdk-go/${name}";
4+ fetch = {
5+ type = "git";
6+ url = "https://github.com/aws/aws-sdk-go";
7+ rev = "v1.14.13";
8+ sha256 = "0014b6kl3rbjhjbk7jz116wdgdls54b1bwz454pkn1snlvkj3qil";
9+ };
10+ };
11+in
12+[
13+ (mkAwsPackage "")
14+ (mkAwsPackage "aws/session")
15+ (mkAwsPackage "aws/sns")
16+ (mkAwsPackage "service/sns")
17+ {
18+ goPackagePath = "github.com/imdario/mergo";
19+ fetch = {
20+ type = "git";
21+ url = "https://github.com/imdario/mergo";
22+ rev = "v0.3.5";
23+ sha256 = "1mvgn89vp39gcpvhiq4n7nw5ipj7fk6h03jgc6fjwgvwvss213pb";
24+ };
25+ }{
26+ goPackagePath = "github.com/mitchellh/hashstructure";
27+ fetch = {
28+ type = "git";
29+ url = "https://github.com/mitchellh/hashstructure";
30+ rev = "2bca23e0e452137f789efbc8610126fd8b94f73b"; # has no releases as of writing
31+ sha256 = "0vpacsls26474wya360fjhzi6l4y8s8s251c4szvqxh17n5f5gk1";
32+ };
33+ }
34+]