3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #139194 from hercules-ci/fix-es-beats-aarch64

es *beat6: Fix build on aarch64
This commit is contained in:
Robert Hensing 2021-09-24 13:45:06 +02:00 committed by GitHub
commit fe03e825b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, elk6Version, buildGoPackage, libpcap, nixosTests, systemd }:
{ lib, fetchFromGitHub, fetchpatch, elk6Version, buildGoPackage, libpcap, nixosTests, systemd }:
let beat = package : extraArgs : buildGoPackage (rec {
name = "${package}-${version}";
@ -15,6 +15,14 @@ let beat = package : extraArgs : buildGoPackage (rec {
subPackages = [ package ];
patches = [
(fetchpatch {
# Build fix for aarch64, possibly other systems, merged in beats 7.x https://github.com/elastic/beats/pull/9493
url = "https://github.com/elastic/beats/commit/5d796571de1aa2a299393d2045dacc2efac41a04.diff";
sha256 = "sha256:0b79fljbi5xd3h8iiv1m38ad0zhmj09f187asc0m9rxlqrz2l9r2";
})
];
meta = with lib; {
homepage = "https://www.elastic.co/products/beats";
license = licenses.asl20;