Files
CosmicScale 13813c3c62 Multilingual Support
PSBBN Installer:
- Add an option to select a language when installing PSBBN
- Install Japanese online game channels when Japanese is selected

PSBBN Updater:
- Install updates for the PSBBN System Software and language pack
- Install updates for online channels when the language is set to Japanese

Optional Extras:
- Add an option to change the PSBBN language in the Optional Extras menu

Game Installer:
- Display Japanese-region game titles in Japanese and sort them in gojūon (五十音) order when Japanese is selected
- Install the POPS IGR message for the selected language
- Install PS1 game manuals for the selected language

TitlesDB_PS1.csv and TitlesDB_PS2.csv:
- Add Japanese titles for all Japanese-region games

list-builder.py:
- Update to handle Japanese game titles

General:
- Add libicu-dev and pkg-config to the dependencies
2026-01-08 17:20:53 +00:00

85 lines
2.1 KiB
Nix

{
description = "PSBBN Definitive English Patch env";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
{
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem (
system:
let
psbbn = pkgs.writeScriptBin "psbbn" ''
#!${pkgs.bash}/bin/bash
${builtins.concatStringsSep "\n" (
builtins.tail (pkgs.lib.splitString "\n" (builtins.readFile ../../PSBBN-Definitive-Patch.sh))
)}
'';
pkgs = import nixpkgs { inherit system; };
pythonEnv = pkgs.python3.withPackages (
ps: with ps; [
pip
lz4
natsort
mutagen
tqdm
PyICU
pykakasi
]
);
in
{
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
bash
pythonEnv
axel
imagemagick
unixtools.xxd
bc
rsync
curl
zip
unzip
wget
exfat
ffmpeg
parted
fuse2
bchunk
e2fsprogs
libicu-dev
pkg-config
patchelf
psbbn
];
shellHook = ''
${pkgs.patchelf}/bin/patchelf --set-rpath "${pkgs.fuse2.out}/lib" "./scripts/helper/PFS Fuse.elf"
mkdir -p scripts/venv/
ln -sfn ${pythonEnv}/* ./scripts/venv/
echo -e "\033[1;32m==============================================================\033[0m"
echo -e "\033[1;36m PSBBN Definitive English Patch \033[0m"
echo -e "\033[1;32m==============================================================\033[0m"
echo ""
echo -e "Open main menu by executing: \033[1;36mpsbbn\033[0m"
echo ""
'';
};
apps = {
psbbn = flake-utils.lib.mkApp { drv = psbbn; };
};
}
);
}