From aa68bdaaf044bbd4584509a749dd92662d0bac87 Mon Sep 17 00:00:00 2001 From: mahmoud Date: Mon, 29 Dec 2025 02:20:23 -0800 Subject: [PATCH 1/2] maintainers: add mse63 --- maintainers/maintainer-list.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 66f7345251c0..f767134176b8 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -17873,6 +17873,11 @@ githubId = 30654959; name = "Michele Sciabarra"; }; + mse63 = { + name = "Mahmoud Elsharawy"; + github = "mse63"; + githubId = 81396550; + }; msgilligan = { email = "sean@msgilligan.com"; github = "msgilligan"; From c5601ea0ef4595f4ce0200b67c80322d0aa0085c Mon Sep 17 00:00:00 2001 From: mahmoud Date: Mon, 29 Dec 2025 02:22:45 -0800 Subject: [PATCH 2/2] lichess-bot: init at 2025.12.23.1 --- pkgs/by-name/li/lichess-bot/package.nix | 55 +++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pkgs/by-name/li/lichess-bot/package.nix diff --git a/pkgs/by-name/li/lichess-bot/package.nix b/pkgs/by-name/li/lichess-bot/package.nix new file mode 100644 index 000000000000..409d61f98502 --- /dev/null +++ b/pkgs/by-name/li/lichess-bot/package.nix @@ -0,0 +1,55 @@ +{ + lib, + python3Packages, + fetchFromGitHub, +}: + +python3Packages.buildPythonApplication { + pname = "lichess-bot"; + version = "2025.12.23.1"; + format = "other"; + + src = fetchFromGitHub { + owner = "lichess-bot-devs"; + repo = "lichess-bot"; + rev = "6ea42dfaffa65efea0da09d94b058853d724a989"; + hash = "sha256-G8DiW96mRnvmmmRALRcYDnjLilQIRqH5m6+aTluhohI="; + }; + + propagatedBuildInputs = with python3Packages; [ + chess + pyyaml + requests + backoff + rich + ]; + + installPhase = '' + runHook preInstall + + substituteInPlace "lib/lichess_bot.py" \ + --replace 'open("lib/versioning.yml")' \ + 'open("'$out'/share/lichess-bot/lib/versioning.yml")' + + + mkdir -p "$out"/{bin,share/lichess-bot} + cp -R . $out/share/lichess-bot + + makeWrapper ${python3Packages.python.interpreter} $out/bin/lichess-bot \ + --set PYTHONPATH "$PYTHONPATH:$out/share/lichess-bot" \ + --add-flags "$out/share/lichess-bot/lichess-bot.py" + echo $out > $out/my_dir.txt + + runHook postInstall + ''; + + meta = { + description = "Bridge between lichess.org and bots"; + homepage = "https://github.com/lichess-bot-devs/lichess-bot"; + license = lib.licenses.gpl3; + maintainers = with lib.maintainers; [ mse63 ]; + platforms = lib.platforms.unix; + mainProgram = "lichess-bot"; + }; + +}