mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 12:22:37 +03:00
filebeat: 5.2.1 -> 5.2.2, build from source
This commit is contained in:
parent
8338506abe
commit
a0d087b6fe
@ -1,28 +1,25 @@
|
||||
{ stdenv, fetchurl }:
|
||||
{ stdenv, fetchFromGitHub, buildGoPackage }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
buildGoPackage rec {
|
||||
name = "filebeat-${version}";
|
||||
version = "5.2.1";
|
||||
version = "5.2.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://artifacts.elastic.co/downloads/beats/filebeat/${name}-linux-x86_64.tar.gz";
|
||||
sha256 = "0kwkd3n6jmd0mwbvk2dng8843mxyq4mfvlm3hc8d1vd2m1m9wlhi";
|
||||
src = fetchFromGitHub {
|
||||
owner = "elastic";
|
||||
repo = "beats";
|
||||
rev = "v${version}";
|
||||
sha256 = "19hkq19xpi3c9y5g1yq77sm2d5vzybn6mxxf0s5l6sw4l98aak5q";
|
||||
};
|
||||
|
||||
# statically linked binary, no need to build anything
|
||||
dontBuild = true;
|
||||
doCheck = false;
|
||||
goPackagePath = "github.com/elastic/beats";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp filebeat $out/bin/
|
||||
'';
|
||||
subPackages = [ "filebeat" ];
|
||||
|
||||
meta = {
|
||||
meta = with stdenv.lib; {
|
||||
description = "Lightweight shipper for logfiles";
|
||||
homepage = https://www.elastic.co/products/beats;
|
||||
license = stdenv.lib.licenses.asl20;
|
||||
maintainers = [ stdenv.lib.maintainers.fadenb ];
|
||||
platforms = [ "x86_64-linux" ];
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.fadenb ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user