This commit is contained in:
Sebastian Moser
2025-04-22 23:13:32 +02:00
parent a4e3c42595
commit bc63aa7db8
2 changed files with 12 additions and 4 deletions

View File

@@ -1,18 +1,26 @@
{ lib
, python3Packages
, python3
, stdenv
}:
python3Packages.buildPythonApplication {
stdenv.mkDerivation {
pname = "minecraft-server-whitelist-all-players";
version = "1.0";
pyproject = false;
propagatedBuildInputs = with python3Packages; [ requests ];
propagatedBuildInputs = [
(python3.withPackages (pythonPackages: with pythonPackages; [
requests
]))
];
dontUnpack = true;
src = ./.;
installPhase = "install -Dm755 ${./minecraft-server-whitelist-all-players.py} $out/bin/minecraft-server-whitelist-all-players";
meta = with lib; {
description = "A small python script to generate a whitelist.json from all players that ever joined the server.";
longDescription = ''