2022-10-18 20:47:32 +00:00
|
|
|
{
|
|
|
|
lib,
|
2022-10-18 21:39:42 +00:00
|
|
|
dotnet-sdk,
|
2023-01-09 03:36:01 +00:00
|
|
|
stdenv,
|
2022-10-19 00:14:28 +00:00
|
|
|
substituteAll,
|
2022-10-18 20:47:32 +00:00
|
|
|
|
|
|
|
buildDotnetModule,
|
|
|
|
fetchFromGitHub,
|
|
|
|
|
2022-12-17 19:02:12 +00:00
|
|
|
dotnetCorePackages,
|
|
|
|
|
2022-10-18 20:47:32 +00:00
|
|
|
libX11,
|
|
|
|
libICE,
|
|
|
|
libSM,
|
|
|
|
fontconfig,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "BeatSaberModManager";
|
2023-02-25 13:43:44 +00:00
|
|
|
version = "0.0.5";
|
2022-10-18 20:47:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "affederaffe";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-02-25 13:43:44 +00:00
|
|
|
sha256 = "sha256-HHWC+MAwJ+AMCuBzSuR7FbW3k+wLri0B9J1DftyfNEU=";
|
2022-10-18 20:47:32 +00:00
|
|
|
fetchSubmodules = true; # It vendors BSIPA-Linux
|
|
|
|
};
|
|
|
|
|
2022-10-18 21:39:42 +00:00
|
|
|
# This _must_ be specified in the project file and it can only be one so
|
|
|
|
# obviously you wouldn't specify it as an upstream project. Typical M$.
|
2022-10-18 21:51:39 +00:00
|
|
|
# https://github.com/NixOS/nixpkgs/pull/196648#discussion_r998709996
|
2022-11-05 12:10:46 +00:00
|
|
|
# https://github.com/affederaffe/BeatSaberModManager/issues/5
|
2022-10-19 00:14:28 +00:00
|
|
|
patches = [
|
|
|
|
(substituteAll {
|
|
|
|
src = ./add-runtime-identifier.patch;
|
2023-01-09 03:36:01 +00:00
|
|
|
runtimeIdentifier = dotnetCorePackages.systemToDotnetRid stdenv.targetPlatform.system;
|
2022-10-19 00:14:28 +00:00
|
|
|
})
|
|
|
|
];
|
2022-10-18 20:47:32 +00:00
|
|
|
|
2022-12-17 19:02:12 +00:00
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_7_0;
|
|
|
|
dotnet-runtime = dotnetCorePackages.runtime_7_0;
|
|
|
|
|
2022-10-18 21:39:42 +00:00
|
|
|
nugetDeps = ./deps.nix;
|
2022-10-18 20:47:32 +00:00
|
|
|
|
|
|
|
runtimeDeps = [
|
|
|
|
libX11
|
|
|
|
libICE
|
|
|
|
libSM
|
|
|
|
fontconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|