Merge pull request #154601 from kampka/pahole-musl

pahole: fix musl build

authored by Dmitry Kalinkin and committed by GitHub cb78e669 3e4412db

+6 -2
+6 -2
pkgs/development/tools/misc/pahole/default.nix
··· 1 - { lib, stdenv, fetchgit, pkg-config, libbpf, cmake, elfutils, zlib }: 1 + { lib, stdenv, fetchgit, pkg-config, libbpf, cmake, elfutils, zlib, argp-standalone, musl-obstack }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "pahole"; ··· 10 10 }; 11 11 12 12 nativeBuildInputs = [ cmake pkg-config ]; 13 - buildInputs = [ elfutils zlib libbpf ]; 13 + buildInputs = [ elfutils zlib libbpf ] 14 + ++ lib.optional stdenv.hostPlatform.isMusl [ 15 + argp-standalone 16 + musl-obstack 17 + ]; 14 18 15 19 # Put libraries in "lib" subdirectory, not top level of $out 16 20 cmakeFlags = [ "-D__LIB=lib" "-DLIBBPF_EMBEDDED=OFF" ];