pokete: init at 0.7.2

This commit is contained in:
Francesco Gazzetta 2022-06-16 17:18:31 +02:00
parent e36d99a5df
commit 11c5f73828
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,55 @@
{ lib
, python3
, fetchFromGitHub
, testers
, pokete
}:
python3.pkgs.buildPythonApplication rec {
pname = "pokete";
version = "0.7.2";
format = "other";
src = fetchFromGitHub {
owner = "lxgr-linux";
repo = "pokete";
rev = version;
sha256 = "sha256-P6007qY6MsnQH4LGiNPoKCUt3+YI0OinKFdosaj3Wrc=";
};
pythonPath = with python3.pkgs; [
scrap-engine
pynput
];
buildPhase = ''
${python3.interpreter} -O -m compileall .
'';
installPhase = ''
mkdir -p $out/share/pokete
cp -r assets pokete_classes pokete_data mods *.py $out/share/pokete/
mkdir -p $out/bin
ln -s $out/share/pokete/pokete.py $out/bin/pokete
'';
postFixup = ''
wrapPythonProgramsIn $out/share/pokete "$pythonPath"
'';
passthru.tests = {
pokete-version = testers.testVersion {
package = pokete;
command = "pokete --help";
};
};
meta = with lib; {
description = "A terminal based Pokemon like game";
homepage = "https://lxgr-linux.github.io/pokete";
license = licenses.gpl3Only;
maintainers = with maintainers; [ fgaz ];
platforms = platforms.unix;
};
}

View File

@ -32189,6 +32189,8 @@ with pkgs;
target = "server";
};
pokete = callPackage ../games/pokete { };
powermanga = callPackage ../games/powermanga { };
prboom-plus = callPackage ../games/prboom-plus { };