mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
7ce8e7c4cf
LLVM-exception only makes sense when used with the Apache 2.0 license, so let's combine them, so it's not possible to forget one of them like happened with llvm_15.
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{ lib, stdenv
|
|
, fetchurl
|
|
, autoreconfHook
|
|
, elfutils
|
|
, libxml2
|
|
, pkg-config
|
|
, strace
|
|
, python3
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libabigail";
|
|
version = "2.1";
|
|
|
|
outputs = [ "bin" "out" "dev" ];
|
|
|
|
src = fetchurl {
|
|
url = "https://mirrors.kernel.org/sourceware/${pname}/${pname}-${version}.tar.gz";
|
|
sha256 = "sha256-SmKX1B0V0ZNiVhFxFr1hKW5rm+4j1UoMr40/WrjdzEw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkg-config
|
|
strace
|
|
];
|
|
|
|
buildInputs = [
|
|
elfutils
|
|
libxml2
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
python3
|
|
];
|
|
|
|
configureFlags = [
|
|
"--enable-bash-completion=yes"
|
|
"--enable-cxx11=yes"
|
|
];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
doCheck = true;
|
|
|
|
preCheck = ''
|
|
# runtestdiffpkg needs cache directory
|
|
export XDG_CACHE_HOME="$TEMPDIR"
|
|
patchShebangs tests/
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "ABI Generic Analysis and Instrumentation Library";
|
|
homepage = "https://sourceware.org/libabigail/";
|
|
license = licenses.asl20-llvm;
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|