wog/package.nix
rope 71dd99795a First slice: classes, combat, questing, Deadmines
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 22:52:42 +01:00

26 lines
645 B
Nix

{ lib, stdenvNoCC, makeWrapper, python3 }:
stdenvNoCC.mkDerivation {
pname = "wog";
version = "0.1.0";
src = ./.;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/share/wog $out/bin
cp app.py game.py combat.py content.py $out/share/wog/
cp -r static $out/share/wog/static
makeWrapper ${python3}/bin/python3 $out/bin/wog \
--add-flags "$out/share/wog/app.py"
runHook postInstall
'';
meta = {
description = "Co-op adventure for a small group of friends";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
mainProgram = "wog";
};
}