1 { stdenv, lib, fetchFromGitHub }:
8 description = "'Capture The Flag' for Yamagi Quake II";
9 sha256 = "0i9bwhjvq6yhalrsbzjambh27fdzrzgswqz3jgfn9qw6k1kjvlin";
15 description = "'Ground Zero' for Yamagi Quake II";
16 sha256 = "1m2r4vgfdxpsi0lkf32liwf1433mdhhmjxiicjwzqjlkncjyfcb1";
22 description = "'The Reckoning' for Yamagi Quake II";
23 sha256 = "1wp9fg1q8nly2r9hh4394r1h4dxyni3lvdy7g419cz5s8hhn5msr";
27 toDrv = title: data: stdenv.mkDerivation rec {
28 inherit (data) id version description sha256;
31 pname = "yquake2-${title}";
33 src = fetchFromGitHub {
37 rev = "${lib.toUpper id}_${builtins.replaceStrings ["."] ["_"] version}";
42 mkdir -p $out/lib/yquake2/${id}
43 cp release/* $out/lib/yquake2/${id}
48 inherit (data) description;
49 homepage = "https://www.yamagi.org/quake2/";
50 license = licenses.unfree;
51 platforms = platforms.unix;
52 maintainers = with maintainers; [ tadfisher ];
57 lib.mapAttrs toDrv games