Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
79 lines
1.7 KiB
Nix
79 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
buildDotnetModule,
|
|
dotnetCorePackages,
|
|
zlib,
|
|
icu,
|
|
openssl,
|
|
icoutils,
|
|
copyDesktopItems,
|
|
makeDesktopItem,
|
|
nix-update-script,
|
|
}:
|
|
buildDotnetModule rec {
|
|
pname = "lumafly";
|
|
version = "3.3.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "TheMulhima";
|
|
repo = "lumafly";
|
|
tag = "v${version}";
|
|
hash = "sha256-GVPMAwxbq9XlKjMKd9G5yUol42f+6lSyHukN7NMCVDA=";
|
|
};
|
|
|
|
# Use .NET 9.0 since 7.0 is EOL
|
|
dotnetFlags = [ "-p:TargetFramework=net9.0" ];
|
|
|
|
projectFile = "Lumafly/Lumafly.csproj";
|
|
|
|
nugetDeps = ./deps.json;
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_9_0;
|
|
dotnet-runtime = dotnetCorePackages.sdk_9_0;
|
|
|
|
selfContainedBuild = true;
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
runtimeDeps = [
|
|
zlib
|
|
icu
|
|
openssl
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
icoutils
|
|
copyDesktopItems
|
|
];
|
|
|
|
executables = [ "Lumafly" ];
|
|
|
|
postFixup = ''
|
|
# Icon for the desktop file
|
|
icotool -x $src/Lumafly/Assets/Lumafly.ico
|
|
install -D Lumafly_1_32x32x32.png $out/share/icons/hicolor/32x32/apps/lumafly.png
|
|
'';
|
|
|
|
desktopItems = [
|
|
(makeDesktopItem {
|
|
desktopName = "Lumafly";
|
|
name = "lumafly";
|
|
exec = "Lumafly";
|
|
icon = "lumafly";
|
|
comment = "A cross platform mod manager for Hollow Knight written in Avalonia";
|
|
type = "Application";
|
|
categories = [ "Game" ];
|
|
})
|
|
];
|
|
|
|
meta = {
|
|
description = "Cross platform mod manager for Hollow Knight written in Avalonia";
|
|
homepage = "https://themulhima.github.io/Lumafly/";
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "Lumafly";
|
|
maintainers = with lib.maintainers; [ rohanssrao ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|