{ 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"; }; }