removed starship
This commit is contained in:
parent
35289d7a97
commit
12cbfd1f98
10 changed files with 915 additions and 50 deletions
56
modules/system/applications/melonloader/package.nix
Normal file
56
modules/system/applications/melonloader/package.nix
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
fetchFromGitHub,
|
||||
dotnetCorePackages,
|
||||
buildDotnetModule,
|
||||
makeDesktopItem,
|
||||
copyDesktopItems,
|
||||
lib,
|
||||
}:
|
||||
buildDotnetModule rec {
|
||||
pname = "melonloader-installer";
|
||||
version = "4.1.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "LavaGang";
|
||||
repo = "MelonLoader.Installer";
|
||||
tag = version;
|
||||
hash = "sha256-1Tdf2xOGBtSW68fycH6Eal4EF7uN2ZAEVBE9st6ruvg=";
|
||||
};
|
||||
|
||||
projectFile = "MelonLoader.Installer/MelonLoader.Installer.csproj";
|
||||
dotnet-sdk = dotnetCorePackages.sdk_8_0;
|
||||
dotnet-runtime = dotnetCorePackages.runtime_8_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