From ed48ad7b256ba45209d4d3e6ee641706faccb0e0 Mon Sep 17 00:00:00 2001 From: Luflosi Date: Mon, 27 Nov 2023 22:08:42 +0100 Subject: [PATCH] teeworlds: fix meta.license Replace stringy license with a list of all used licenses. The original meta.license said that the license was BSD-style but this information has been outdated for a long time. The license was changed in 2008: https://github.com/teeworlds/teeworlds/commit/bc108df382b5ac4ca637bf97ba9b2d8b2d83e58f#diff-7bb54d15ef4c4e0f20bb24add68a12fccced9925b304eaa696023143d278ea26. The current license is clearly the zlib license and below that some notes about the licenses of `datasrc` (and `data`, which has not existed in the tree for many years), the fonts in `datasrc` and the libraries in `src/engine/external`. See https://github.com/teeworlds/teeworlds/blob/master/license.txt for the current version of the license. The meta.license string has been unchanged since the commit adding teeworlds in 2009: e71dbdbb8334152dbf3083801d194b2f88cee9b4. See issue #269788. --- pkgs/games/teeworlds/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/games/teeworlds/default.nix b/pkgs/games/teeworlds/default.nix index eed9853ece9d..bec2b9bc7aa7 100644 --- a/pkgs/games/teeworlds/default.nix +++ b/pkgs/games/teeworlds/default.nix @@ -99,7 +99,18 @@ stdenv.mkDerivation rec { ''; homepage = "https://teeworlds.com/"; - license = "BSD-style, see `license.txt'"; + license = with lib.licenses; [ + # See https://github.com/teeworlds/teeworlds/blob/master/license.txt + lib.licenses.zlib # Main license + cc-by-sa-30 # All content under 'datasrc' except the fonts + ofl # datasrc/fonts/SourceHanSans.ttc + free # datasrc/fonts/DejaVuSans.ttf + bsd2 # src/engine/external/json-parser/ + bsd3 # src/engine/external/wavpack + # zlib src/engine/external/md5/ + # zlib src/engine/external/pnglite/ + # zlib src/engine/external/zlib/ + ]; maintainers = with lib.maintainers; [ astsmtl Luflosi ]; platforms = lib.platforms.unix; };