1{
2 lib,
3 stdenv,
4 fetchurl,
5 autoreconfHook,
6 elfutils,
7 libxml2,
8 pkg-config,
9 strace,
10 python3,
11}:
12
13stdenv.mkDerivation rec {
14 pname = "libabigail";
15 version = "2.5";
16
17 outputs = [
18 "bin"
19 "out"
20 "dev"
21 ];
22
23 src = fetchurl {
24 url = "https://mirrors.kernel.org/sourceware/${pname}/${pname}-${version}.tar.xz";
25 hash = "sha256-fPxOmwCuONh/sMY76rsyucv5zkEOUs7rWtWzxb6xEfM=";
26 };
27
28 nativeBuildInputs = [
29 autoreconfHook
30 pkg-config
31 strace
32 ];
33
34 buildInputs = [
35 elfutils
36 libxml2
37 ];
38
39 nativeCheckInputs = [
40 python3
41 ];
42
43 configureFlags = [
44 "--enable-bash-completion=yes"
45 "--enable-cxx11=yes"
46 ];
47
48 enableParallelBuilding = true;
49
50 doCheck = true;
51
52 preCheck = ''
53 # runtestdiffpkg needs cache directory
54 export XDG_CACHE_HOME="$TEMPDIR"
55 patchShebangs tests/
56 '';
57
58 meta = with lib; {
59 description = "ABI Generic Analysis and Instrumentation Library";
60 homepage = "https://sourceware.org/libabigail/";
61 license = with licenses; [
62 asl20
63 llvm-exception
64 ];
65 maintainers = [ ];
66 platforms = platforms.linux;
67 };
68}