add melonloader
This commit is contained in:
parent
56b178a167
commit
82c10b793b
7 changed files with 858 additions and 0 deletions
61
packages/melonloader/package.nix
Normal file
61
packages/melonloader/package.nix
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
{
|
||||
fetchFromGitHub,
|
||||
dotnetCorePackages,
|
||||
buildDotnetModule,
|
||||
makeDesktopItem,
|
||||
copyDesktopItems,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
buildDotnetModule rec {
|
||||
pname = "melonloader-installer";
|
||||
version = "4.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LavaGang";
|
||||
repo = "MelonLoader.Installer";
|
||||
tag = version;
|
||||
hash = "sha256-0hUc4f1avPfNDGAQDokLpRLK4sSrUFD5GkJZeP/Gu34=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./disable-auto-updates.patch
|
||||
];
|
||||
|
||||
projectFile = "MelonLoader.Installer/MelonLoader.Installer.csproj";
|
||||
dotnet-sdk = dotnetCorePackages.sdk_9_0;
|
||||
dotnet-runtime = dotnetCorePackages.runtime_9_0;
|
||||
nugetDeps = ./deps.json;
|
||||
selfContainedBuild = true;
|
||||
|
||||
nativeBuildInputs = [copyDesktopItems];
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 Resources/ML_Icon.png $out/share/icons/MelonLoader.Installer.Linux.png
|
||||
'';
|
||||
|
||||
desktopItems = [
|
||||
(makeDesktopItem {
|
||||
name = pname;
|
||||
desktopName = "MelonLoader Installer";
|
||||
exec = meta.mainProgram;
|
||||
comment = meta.description;
|
||||
categories = [
|
||||
"Game"
|
||||
"Utility"
|
||||
];
|
||||
icon = meta.mainProgram;
|
||||
})
|
||||
];
|
||||
|
||||
passthru.updateScript = ./update.sh;
|
||||
|
||||
meta = {
|
||||
homepage = "https://melonwiki.xyz";
|
||||
mainProgram = "MelonLoader.Installer.Linux";
|
||||
description = "Automated installer for MelonLoader, the universal mod-loader for games built in the Unity Engine";
|
||||
license = lib.licenses.asl20;
|
||||
platforms = ["x86_64-linux"];
|
||||
maintainers = with lib.maintainers; [WillemToorenburgh];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue