From 10e1a6b53980144d1787cf7100aa53e05b1729da Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Fri, 25 Jul 2025 14:37:04 +0200 Subject: [PATCH] alsa-utils: provide precise licence information Most of the code is licenced under GPL 2 or later, with the following exceptions: - alsactl is mostly GPL 2+ with init_parse.c, init_sysdeps.c, init_sysdeps.c, init_utils_run.c and init_utils_string.c being marked as GPL 2 only, and - alsaucm is LGPL 2.1 or later. I think it is safe to assume that following explicit licence compatibility clauses the complete package can be distributed under the terms of GPL version 2, but this commit exposes the licence information as precisely as possible. --- pkgs/by-name/al/alsa-utils/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/al/alsa-utils/package.nix b/pkgs/by-name/al/alsa-utils/package.nix index 46c24bd3b3ba..343fce8dd957 100644 --- a/pkgs/by-name/al/alsa-utils/package.nix +++ b/pkgs/by-name/al/alsa-utils/package.nix @@ -87,7 +87,12 @@ stdenv.mkDerivation (finalAttrs: { MIDI functionality to the Linux-based operating system. ''; - license = lib.licenses.gpl2; + license = with lib.licenses; [ + gpl2Plus + gpl2Only # alsactl (init_{parse,sysdeps,sysfs,utils_{run,string}}.c, rest GPL 2.0+) + lgpl21Plus # alsaucm + ]; + platforms = lib.platforms.linux; maintainers = [ ]; };