2022-10-18 22:47:32 +02:00
|
|
|
{
|
|
|
|
lib,
|
2022-10-18 23:39:42 +02:00
|
|
|
dotnet-sdk,
|
2023-01-09 04:36:01 +01:00
|
|
|
stdenv,
|
2022-10-19 02:14:28 +02:00
|
|
|
substituteAll,
|
2022-10-18 22:47:32 +02:00
|
|
|
|
|
|
|
buildDotnetModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
2022-12-17 20:02:12 +01:00
|
|
|
dotnetCorePackages,
|
|
|
|
|
2022-10-18 22:47:32 +02:00
|
|
|
libX11,
|
|
|
|
libICE,
|
|
|
|
libSM,
|
|
|
|
fontconfig,
|
2023-05-28 17:21:51 +02:00
|
|
|
|
|
|
|
xdg-utils,
|
2022-10-18 22:47:32 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "BeatSaberModManager";
|
2023-02-25 14:43:44 +01:00
|
|
|
version = "0.0.5";
|
2022-10-18 22:47:32 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "affederaffe";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-25 14:43:44 +01:00
|
|
|
sha256 = "sha256-HHWC+MAwJ+AMCuBzSuR7FbW3k+wLri0B9J1DftyfNEU=";
|
2022-10-18 22:47:32 +02:00
|
|
|
fetchSubmodules = true; # It vendors BSIPA-Linux
|
|
|
|
};
|
|
|
|
|
2023-03-19 20:33:55 +01:00
|
|
|
dotnet-sdk = with dotnetCorePackages; combinePackages [
|
|
|
|
sdk_7_0
|
|
|
|
sdk_6_0
|
2022-10-19 02:14:28 +02:00
|
|
|
];
|
2022-10-18 22:47:32 +02:00
|
|
|
|
2022-12-17 20:02:12 +01:00
|
|
|
dotnet-runtime = dotnetCorePackages.runtime_7_0;
|
|
|
|
|
2023-03-19 20:33:55 +01:00
|
|
|
projectFile = [ "BeatSaberModManager/BeatSaberModManager.csproj" ];
|
|
|
|
|
|
|
|
executables = [ "BeatSaberModManager" ];
|
|
|
|
|
2022-10-18 23:39:42 +02:00
|
|
|
nugetDeps = ./deps.nix;
|
2022-10-18 22:47:32 +02:00
|
|
|
|
|
|
|
runtimeDeps = [
|
|
|
|
libX11
|
|
|
|
libICE
|
|
|
|
libSM
|
|
|
|
fontconfig
|
|
|
|
];
|
|
|
|
|
2023-05-28 17:21:51 +02:00
|
|
|
# Required for OneClick
|
|
|
|
makeWrapperArgs = [
|
2023-05-29 18:13:44 +02:00
|
|
|
''--suffix PATH : "${lib.makeBinPath [ xdg-utils ]}"''
|
2023-05-28 17:21:51 +02:00
|
|
|
];
|
|
|
|
|
2022-10-18 22:47:32 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Yet another mod installer for Beat Saber, heavily inspired by ModAssistant";
|
|
|
|
homepage = "https://github.com/affederaffe/BeatSaberModManager";
|
|
|
|
longDescription = ''
|
|
|
|
BeatSaberModManager is yet another mod installer for Beat Saber, heavily inspired by ModAssistant
|
|
|
|
It strives to look more visually appealing and support both Windows and Linux, while still being as feature-rich as ModAssistant.
|
|
|
|
|
|
|
|
Features
|
|
|
|
|
|
|
|
- Windows and Linux support
|
|
|
|
- Dependency resolution
|
|
|
|
- Installed mod detection
|
|
|
|
- Mod uninstallation
|
|
|
|
- Theming support
|
|
|
|
- OneClick™ support for BeatSaver, ModelSaber and Playlists
|
|
|
|
'';
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ atemu ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|