Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

taisei: 1.3.2 -> 1.4.2; modernize; add myself as maintainer #353696

Merged
merged 5 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
104 changes: 104 additions & 0 deletions pkgs/by-name/ta/taisei/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
{
lib,
stdenv,
fetchFromGitHub,
# Build depends
docutils,
meson,
ninja,
pkg-config,
python3Packages,
opusfile,
openssl,
gamemode,
shaderc,
ensureNewerSourcesForZipFilesHook,
# Runtime depends
glfw,
SDL2,
SDL2_mixer,
cglm,
freetype,
libpng,
libwebp,
libzip,
zlib,
zstd,
spirv-cross,

gamemodeSupport ? stdenv.hostPlatform.isLinux,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "taisei";
version = "1.4.2";

src = fetchFromGitHub {
owner = "taisei-project";
repo = "taisei";
rev = "v${finalAttrs.version}";
hash = "sha256-rThLz8o6IYhIBUc0b1sAQi2aF28btajcM1ScTv+qn6c=";
fetchSubmodules = true;
};

nativeBuildInputs = [
docutils
meson
ninja
pkg-config
python3Packages.python
python3Packages.zstandard
ensureNewerSourcesForZipFilesHook
shaderc
];

buildInputs = [
glfw
SDL2
SDL2_mixer
cglm
freetype
libpng
libwebp
libzip
zlib
zstd
opusfile
openssl
spirv-cross
] ++ lib.optional gamemodeSupport gamemode;

mesonFlags = [
Gliczy marked this conversation as resolved.
Show resolved Hide resolved
(lib.mesonBool "b_lto" false)
(lib.mesonEnable "install_macos_bundle" false)
(lib.mesonEnable "install_relocatable" false)
(lib.mesonEnable "shader_transpiler" false)
(lib.mesonEnable "gamemode" gamemodeSupport)
];
Gliczy marked this conversation as resolved.
Show resolved Hide resolved

preConfigure = ''
patchShebangs .
'';

strictDeps = true;

meta = {
description = "Free and open-source Touhou Project clone and fangame";
mainProgram = "taisei";
longDescription = ''
Taisei is an open clone of the Tōhō Project series. Tōhō is a one-man
project of shoot-em-up games set in an isolated world full of Japanese
folklore.
'';
homepage = "https://taisei-project.org/";
license = with lib.licenses; [
mit
cc-by-40
];
maintainers = with lib.maintainers; [
lambda-11235
Gliczy
];
platforms = lib.platforms.all;
};
})
13 changes: 0 additions & 13 deletions pkgs/games/taisei/0001-lto-fix.patch

This file was deleted.

47 changes: 0 additions & 47 deletions pkgs/games/taisei/default.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34980,8 +34980,6 @@ with pkgs;

t4kcommon = callPackage ../games/t4kcommon { };

taisei = callPackage ../games/taisei { };

tcl2048 = callPackage ../games/tcl2048 { };

the-powder-toy = callPackage ../by-name/th/the-powder-toy/package.nix {
Expand Down