heartbeat: 5.2.1 -> 5.2.2, build from source

This commit is contained in:
Robin Gloster
2017-03-20 23:01:41 +01:00
parent a0d087b6fe
commit 66d0c4b1bd
+14 -17
View File
@@ -1,28 +1,25 @@
{ stdenv, fetchurl }: { stdenv, fetchFromGitHub, buildGoPackage }:
stdenv.mkDerivation rec { buildGoPackage rec {
name = "heartbeat-${version}"; name = "heartbeat-${version}";
version = "5.2.1"; version = "5.2.2";
src = fetchurl { src = fetchFromGitHub {
url = "https://artifacts.elastic.co/downloads/beats/heartbeat/${name}-linux-x86_64.tar.gz"; owner = "elastic";
sha256 = "1sq3va0kbpqsjbd0bnziv2hwnp6nc2vk32hc9drjk7bhcxkp440l"; repo = "beats";
rev = "v${version}";
sha256 = "19hkq19xpi3c9y5g1yq77sm2d5vzybn6mxxf0s5l6sw4l98aak5q";
}; };
# statically linked binary, no need to build anything goPackagePath = "github.com/elastic/beats";
dontBuild = true;
doCheck = false;
installPhase = '' subPackages = [ "heartbeat" ];
mkdir -p $out/bin
cp heartbeat $out/bin/
'';
meta = { meta = with stdenv.lib; {
description = "Lightweight shipper for uptime monitoring"; description = "Lightweight shipper for uptime monitoring";
homepage = https://www.elastic.co/products/beats; homepage = https://www.elastic.co/products/beats;
license = stdenv.lib.licenses.asl20; license = licenses.asl20;
maintainers = [ stdenv.lib.maintainers.fadenb ]; maintainers = [ maintainers.fadenb ];
platforms = [ "x86_64-linux" ]; platforms = platforms.linux;
}; };
} }