nikstur 02843300bb lib.licenses.asl20-llvm: replace with separate llvm-exception
This essentially reverts 7ce8e7c4cf90492a631e96bcfe70724104914381

asl20-llvm does not produce a valid SPDX ID, it produces a valid SPDX
Expression. However, this is not what the spdxId field promises.

This is relevant because we cannot produce valid SBOMs (e.g. CycloneDX)
using this field as the schemas for these SBOMs check that the IDs are
valid.

This change leaves us with consistently valid SPDX IDs at the cost
of slightly less convenience.
2025-03-17 13:05:21 +01:00

69 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchurl,
autoreconfHook,
elfutils,
libxml2,
pkg-config,
strace,
python3,
}:
stdenv.mkDerivation rec {
pname = "libabigail";
version = "2.5";
outputs = [
"bin"
"out"
"dev"
];
src = fetchurl {
url = "https://mirrors.kernel.org/sourceware/${pname}/${pname}-${version}.tar.xz";
hash = "sha256-fPxOmwCuONh/sMY76rsyucv5zkEOUs7rWtWzxb6xEfM=";
};
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 = with licenses; [
asl20
llvm-exception
];
maintainers = [ ];
platforms = platforms.linux;
};
}