networkmanager: Fix build of BPF stuff on powerpc64-linux (#557570)

This commit is contained in:
Cosima Neidahl
2026-09-13 17:49:42 +00:00
committed by GitHub

View File

@@ -1,5 +1,6 @@
{
fetchurl,
fetchpatch,
gitUpdater,
lib,
nixosTests,
@@ -167,6 +168,14 @@ stdenv.mkDerivation (finalAttrs: {
# Meson does not support using different directories during build and
# for installation like Autotools did with flags passed to make install.
./fix-install-paths.patch
# Fixes BPF build on powerpc64-linux w/ ELFv1-targeting glibc
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/2529
(fetchpatch {
name = "0001-networkmanager-bpf-Detect-ELF-ABI-version-on-ppc64.patch";
url = "https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/commit/3c28325b9c63386e5313ce006267144e7f63417a.patch";
hash = "sha256-SlyeykqL7Y11jEF+5l4aRXY2znHaSBhwV5lcmf88PGc=";
})
];
nativeBuildInputs = [