networkmanager: Fix build of BPF stuff on powerpc64-linux

This commit is contained in:
OPNA2608
2026-09-02 17:56:22 +02:00
parent b0aa699cd5
commit 477daaeb7a

View File

@@ -1,5 +1,6 @@
{
fetchurl,
fetchpatch,
gitUpdater,
lib,
nixosTests,
@@ -164,6 +165,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 = [