git.iko.soy/typeable/nixpkgs
on master help sign in
pahole: fix musl build
commitca61dff929ea8644ec69c58d3a941e4312a3306f authorChristian Kampka <christian@kampka.net> dateTue 11 Jan 2022, 17:26 (5 years ago) parent048fd95
1 file changed+6−2
pkgs/development/tools/misc/pahole/default.nix+6−2
pkgs/development/tools/misc/pahole/default.nix+6−2
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchgit, pkg-config, libbpf, cmake, elfutils, zlib }:
1+{ lib, stdenv, fetchgit, pkg-config, libbpf, cmake, elfutils, zlib, argp-standalone, musl-obstack }:
22
33stdenv.mkDerivation rec {
44 pname = "pahole";
@@ -10,7 +10,11 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 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+ ];
1418
1519 # Put libraries in "lib" subdirectory, not top level of $out
1620 cmakeFlags = [ "-D__LIB=lib" "-DLIBBPF_EMBEDDED=OFF" ];