Skip to content

Commit

Permalink
taisei: 1.3.2 -> 1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Gliczy committed Nov 4, 2024
1 parent fb38217 commit 0075b17
Showing 1 changed file with 35 additions and 8 deletions.
43 changes: 35 additions & 8 deletions pkgs/by-name/ta/taisei/package.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
{
lib,
stdenv,
fetchurl,
fetchFromGitHub,
# Build depends
docutils,
meson,
ninja,
pkg-config,
python3,
python312Packages,
ensureNewerSourcesForZipFilesHook,
# Runtime depends
glfw,
SDL2,
Expand All @@ -18,15 +20,24 @@
libwebp,
libzip,
zlib,
zstd,
opusfile,
openssl,
gamemode,
shaderc,
spirv-cross,
}:

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

src = fetchurl {
url = "https://github.com/taisei-project/${pname}/releases/download/v${version}/${pname}-v${version}.tar.xz";
sha256 = "1g53fcyrlzmvlsb40pw90gaglysv6n1w42hk263iv61ibhdmzh6v";
src = fetchFromGitHub {
owner = "taisei-project";
repo = "taisei";
rev = "v${finalAttrs.version}";
hash = "sha256-rThLz8o6IYhIBUc0b1sAQi2aF28btajcM1ScTv+qn6c=";
fetchSubmodules = true;
};

nativeBuildInputs = [
Expand All @@ -35,6 +46,9 @@ stdenv.mkDerivation rec {
ninja
pkg-config
python3
python312Packages.zstandard
ensureNewerSourcesForZipFilesHook
shaderc
];

buildInputs = [
Expand All @@ -47,14 +61,27 @@ stdenv.mkDerivation rec {
libwebp
libzip
zlib
zstd
opusfile
openssl
gamemode
spirv-cross
];

mesonFlags = [ "-Db_lto=false" ];
mesonFlags = [
(lib.mesonBool "b_lto" false)
(lib.mesonEnable "install_macos_bundle" false)
(lib.mesonEnable "install_relocatable" false)
(lib.mesonEnable "install_relocatable" false)
(lib.mesonEnable "shader_transpiler" false)
];

preConfigure = ''
patchShebangs .
'';

strictDeps = true;

meta = {
broken = stdenv.hostPlatform.isDarwin;
description = "Free and open-source Touhou Project clone and fangame";
Expand All @@ -75,4 +102,4 @@ stdenv.mkDerivation rec {
];
platforms = lib.platforms.all;
};
}
})

0 comments on commit 0075b17

Please sign in to comment.