Merge pull request #34272 from benley/alertmanager-0.13.0
prometheus-alertmanager: 0.9.1 -> 0.13.0
This commit is contained in:
commit
1f1c8b71eb
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "alertmanager-${version}";
|
name = "alertmanager-${version}";
|
||||||
version = "0.9.1";
|
version = "0.13.0";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
|
|
||||||
goPackagePath = "github.com/prometheus/alertmanager";
|
goPackagePath = "github.com/prometheus/alertmanager";
|
||||||
@ -11,31 +11,25 @@ buildGoPackage rec {
|
|||||||
inherit rev;
|
inherit rev;
|
||||||
owner = "prometheus";
|
owner = "prometheus";
|
||||||
repo = "alertmanager";
|
repo = "alertmanager";
|
||||||
sha256 = "1lkfj63pp4jf58xmn015r7s42p1wyj6fryihpmdn0k76b0ccwqzj";
|
sha256 = "170q5fynwa3g3wm77g61610n1lf5kqirhrgak6slqzn52ji870nc";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Tests exist, but seem to clash with the firewall.
|
# Tests exist, but seem to clash with the firewall.
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
buildFlagsArray = let t = "${goPackagePath}/version"; in ''
|
buildFlagsArray = let t = "${goPackagePath}/vendor/github.com/prometheus/common/version"; in ''
|
||||||
-ldflags=
|
-ldflags=
|
||||||
-X ${t}.Version=${version}
|
-X ${t}.Version=${version}
|
||||||
-X ${t}.Revision=unknown
|
-X ${t}.Revision=${src.rev}
|
||||||
-X ${t}.Branch=unknown
|
-X ${t}.Branch=unknown
|
||||||
-X ${t}.BuildUser=nix@nixpkgs
|
-X ${t}.BuildUser=nix@nixpkgs
|
||||||
-X ${t}.BuildDate=unknown
|
-X ${t}.BuildDate=unknown
|
||||||
-X ${t}.GoVersion=${stdenv.lib.getVersion go}
|
-X ${t}.GoVersion=${stdenv.lib.getVersion go}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postBuild = ''
|
|
||||||
$NIX_BUILD_TOP/go/bin/artifacts
|
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
rm $bin/bin/artifacts
|
mkdir -p $bin/etc/bash_completion.d
|
||||||
mkdir -p $bin/share/man/man1 $bin/etc/bash_completion.d
|
$NIX_BUILD_TOP/go/bin/amtool --completion-script-bash > $bin/etc/bash_completion.d/amtool_completion.sh
|
||||||
cp -v amtool*.1 $bin/share/man/man1
|
|
||||||
cp -v amtool_completion.sh $bin/etc/bash_completion.d
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user