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