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
1 changed files with 6 additions and 12 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
buildGoPackage rec {
|
||||
name = "alertmanager-${version}";
|
||||
version = "0.9.1";
|
||||
version = "0.13.0";
|
||||
rev = "v${version}";
|
||||
|
||||
goPackagePath = "github.com/prometheus/alertmanager";
|
||||
|
@ -11,31 +11,25 @@ buildGoPackage rec {
|
|||
inherit rev;
|
||||
owner = "prometheus";
|
||||
repo = "alertmanager";
|
||||
sha256 = "1lkfj63pp4jf58xmn015r7s42p1wyj6fryihpmdn0k76b0ccwqzj";
|
||||
sha256 = "170q5fynwa3g3wm77g61610n1lf5kqirhrgak6slqzn52ji870nc";
|
||||
};
|
||||
|
||||
# Tests exist, but seem to clash with the firewall.
|
||||
doCheck = false;
|
||||
|
||||
buildFlagsArray = let t = "${goPackagePath}/version"; in ''
|
||||
buildFlagsArray = let t = "${goPackagePath}/vendor/github.com/prometheus/common/version"; in ''
|
||||
-ldflags=
|
||||
-X ${t}.Version=${version}
|
||||
-X ${t}.Revision=unknown
|
||||
-X ${t}.Revision=${src.rev}
|
||||
-X ${t}.Branch=unknown
|
||||
-X ${t}.BuildUser=nix@nixpkgs
|
||||
-X ${t}.BuildDate=unknown
|
||||
-X ${t}.GoVersion=${stdenv.lib.getVersion go}
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
$NIX_BUILD_TOP/go/bin/artifacts
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
rm $bin/bin/artifacts
|
||||
mkdir -p $bin/share/man/man1 $bin/etc/bash_completion.d
|
||||
cp -v amtool*.1 $bin/share/man/man1
|
||||
cp -v amtool_completion.sh $bin/etc/bash_completion.d
|
||||
mkdir -p $bin/etc/bash_completion.d
|
||||
$NIX_BUILD_TOP/go/bin/amtool --completion-script-bash > $bin/etc/bash_completion.d/amtool_completion.sh
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue