pahole: add nixosTests.bpf to passthru.tests

This commit is contained in:
Sergei Trofimovich 2023-04-18 06:57:56 +01:00
parent 78b3685883
commit 9d025b8916

View file

@ -1,4 +1,15 @@
{ lib, stdenv, fetchzip, pkg-config, libbpf, cmake, elfutils, zlib, argp-standalone, musl-obstack }:
{ lib
, stdenv
, fetchzip
, pkg-config
, libbpf
, cmake
, elfutils
, zlib
, argp-standalone
, musl-obstack
, nixosTests
}:
stdenv.mkDerivation rec {
pname = "pahole";
@ -18,6 +29,10 @@ stdenv.mkDerivation rec {
# Put libraries in "lib" subdirectory, not top level of $out
cmakeFlags = [ "-D__LIB=lib" "-DLIBBPF_EMBEDDED=OFF" ];
passthru.tests = {
inherit (nixosTests) bpf;
};
meta = with lib; {
homepage = "https://git.kernel.org/pub/scm/devel/pahole/pahole.git/";
description = "Shows, manipulates, and pretty-prints debugging information in DWARF, CTF, and BTF formats";