pahole: add nixosTests.bpf
to passthru.tests
This commit is contained in:
parent
78b3685883
commit
9d025b8916
1 changed files with 16 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue