Keep getting failing ot make a package

I’ve been legit trying to package an app for like 2 or 3 month and keep failing to do so every time i try to fix it again

App in question is shijima-qt, for some odd reasons packaging it has been a nightmare: It uses make but someof the submodules uses cmake so i hadd to pass the path to cmake as a make flag + some scripts wouldn’t work because of the little #! so i had to get rid of them, also for some reasons fetchFromGitHub wouldn’t fetch submodules even with fetchSubmodules set to true so i had to use fetchgit.

But now it builds, or so i thiught cuz it just dies for some odd reasons, apparently cuz I’m compiling without optimization (?), i did try to look up the error but couldn’t fine anything

atp no idea what to do, and i gotta say im really no that experienced with nix packages, it’s the first I’m making from scratch, so here’s the entire package

{
  lib,
  stdenv,
  fetchgit,
  pkg-config,
  wayland,
  wayland-protocols,
  wayland-scanner,
  qt6,
  zip,
  cmake,
  libarchive,
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "shijima-qt";
  version = "0.2.0-alpha1";

  src = fetchgit {
    url = "https://github.com/pixelomer/Shijima-Qt";
    tag = "v${finalAttrs.version}";
    hash = "sha256-1OX6jZMxF0U4B8Dv1eV7Y2Ccd9zV0PTtw8k7pI7Z8Jk=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [
    qt6.wrapQtAppsHook
    pkg-config
    wayland
    wayland-protocols
    wayland-scanner
    zip
    libarchive
  ];

  buildInputs = [
    qt6.qtbase
    qt6.qtmultimedia
  ];

  prePatch = ''
    substituteInPlace ./bundle-default.sh \
      --replace-fail "#!/usr/bin/env bash" "\#"
    substituteInPlace ./libshimejifinder/unarr/CMakeLists.txt \
      --replace-fail "VERSION 3.3" "VERSION 3.3...4.0"
    substituteInPlace ./libshimejifinder/bin2cpp.sh \
      --replace-fail "#!/usr/bin/env bash" "\#"
  '';

  buildPhase= ''
    CONFIG=release CMAKE="${cmake}/bin/cmake" make -j8
    '';

  meta = {
    description = "";
    homepage = "";
    license = lib.licenses.gpl3Only;
    maintainers = with lib.maintainers; [ claymorwan ];
  };
})

and the entire logs

If anyone could help me out it’d be real nice please

I don’t see any error in those logs, maybe you can share the full logs in a pastebin if it’s too long to fit here.

o mb i didn’t realize it didn’t copy everything, i just put it in a gist