about summary refs log tree commit diff
path: root/pkgs/games/teeworlds
diff options
context:
space:
mode:
authorLuflosi <luflosi@luflosi.de>2023-11-27 22:08:42 +0100
committerLuflosi <luflosi@luflosi.de>2023-11-30 10:52:26 +0100
commited48ad7b256ba45209d4d3e6ee641706faccb0e0 (patch)
tree4b13aa7f4cf1c0c79078a9bffec89492c80c1ef9 /pkgs/games/teeworlds
parentf5c27c6136db4d76c30e533c20517df6864c46ee (diff)
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.
Diffstat (limited to 'pkgs/games/teeworlds')
-rw-r--r--pkgs/games/teeworlds/default.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/games/teeworlds/default.nix b/pkgs/games/teeworlds/default.nix
index eed9853ece9d8..bec2b9bc7aa79 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;
   };