Commit 02843300 authored by nikstur's avatar nikstur
Browse files

lib.licenses.asl20-llvm: replace with separate llvm-exception

This essentially reverts 7ce8e7c4

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.
parent 272717e3
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -140,11 +140,6 @@ lib.mapAttrs mkLicense ({
    fullName = "Apache License 2.0";
  };

  asl20-llvm = {
    spdxId = "Apache-2.0 WITH LLVM-exception";
    fullName = "Apache License 2.0 with LLVM Exceptions";
  };

  bitstreamVera = {
    spdxId = "Bitstream-Vera";
    fullName = "Bitstream Vera Font License";
@@ -859,6 +854,11 @@ lib.mapAttrs mkLicense ({
    url = "https://opensource.franz.com/preamble.html";
  };

  llvm-exception = {
    spdxId = "LLVM-exception";
    fullName = "LLVM Exception"; # LLVM exceptions to the Apache 2.0 License
  };

  lppl1 = {
    spdxId = "LPPL-1.0";
    fullName = "LaTeX Project Public License v1.0";
+4 −1
Original line number Diff line number Diff line
@@ -113,7 +113,10 @@ python3Packages.buildPythonApplication rec {
    homepage = "https://github.com/Ericsson/codechecker";
    changelog = "https://github.com/Ericsson/codechecker/releases/tag/v${version}";
    description = "Analyzer tooling, defect database and viewer extension for the Clang Static Analyzer and Clang Tidy";
    license = licenses.asl20-llvm;
    license = with licenses; [
      asl20
      llvm-exception
    ];
    maintainers = with maintainers; [
      zebreus
      felixsinger
+4 −1
Original line number Diff line number Diff line
@@ -44,6 +44,9 @@ llvmPackages.stdenv.mkDerivation rec {
    description = "High-performance automatic differentiation of LLVM and MLIR";
    maintainers = with lib.maintainers; [ kiranshila ];
    platforms = lib.platforms.all;
    license = lib.licenses.asl20-llvm;
    license = with lib.licenses; [
      asl20
      llvm-exception
    ];
  };
}
+4 −1
Original line number Diff line number Diff line
@@ -38,7 +38,10 @@ stdenv.mkDerivation (finalAttrs: {
    description = "C++ Performance Portability Programming EcoSystem";
    homepage = "https://github.com/kokkos/kokkos";
    changelog = "https://github.com/kokkos/kokkos/blob/${finalAttrs.src.rev}/CHANGELOG.md";
    license = with licenses; [ asl20-llvm ];
    license = with licenses; [
      asl20
      llvm-exception
    ];
    maintainers = with maintainers; [ Madouura ];
    platforms = platforms.unix;
    broken = stdenv.hostPlatform.isDarwin;
+4 −1
Original line number Diff line number Diff line
@@ -58,7 +58,10 @@ stdenv.mkDerivation rec {
  meta = with lib; {
    description = "ABI Generic Analysis and Instrumentation Library";
    homepage = "https://sourceware.org/libabigail/";
    license = licenses.asl20-llvm;
    license = with licenses; [
      asl20
      llvm-exception
    ];
    maintainers = [ ];
    platforms = platforms.linux;
  };
Loading