git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #139194 from hercules-ci/fix-es-beats-aarch64

es *beat6: Fix build on aarch64

commitfe03e825b2b3d4917e287686e80a963626399b61 authorRobert Hensing <roberth@users.noreply.github.com> dateFri 24 Sep 2021, 13:45 (5 years ago) parentf6a713768a8d86
1 file changed+9−1
pkgs/misc/logging/beats/6.x.nix+9−1
pkgs/misc/logging/beats/6.x.nix+9−1
@@ -1,4 +1,4 @@
1−{ lib, fetchFromGitHub, elk6Version, buildGoPackage, libpcap, nixosTests, systemd }:
1+{ lib, fetchFromGitHub, fetchpatch, elk6Version, buildGoPackage, libpcap, nixosTests, systemd }:
22
33let beat = package : extraArgs : buildGoPackage (rec {
44 name = "${package}-${version}";
@@ -15,6 +15,14 @@ let beat = package : extraArgs : buildGoPackage (rec {
1515
1616 subPackages = [ package ];
1717
18+ patches = [
19+ (fetchpatch {
20+ # Build fix for aarch64, possibly other systems, merged in beats 7.x https://github.com/elastic/beats/pull/9493
21+ url = "https://github.com/elastic/beats/commit/5d796571de1aa2a299393d2045dacc2efac41a04.diff";
22+ sha256 = "sha256:0b79fljbi5xd3h8iiv1m38ad0zhmj09f187asc0m9rxlqrz2l9r2";
23+ })
24+ ];
25+
1826 meta = with lib; {
1927 homepage = "https://www.elastic.co/products/beats";
2028 license = licenses.asl20;