Skip to content

Commit

Permalink
lumafly: use dotnet sdk 9 as sdk 7 has been marked insecure
Browse files Browse the repository at this point in the history
  • Loading branch information
rohanssrao committed Dec 5, 2024
1 parent ac35b10 commit f49c764
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions pkgs/by-name/lu/lumafly/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,21 @@ buildDotnetModule rec {
src = fetchFromGitHub {
owner = "TheMulhima";
repo = "lumafly";
rev = "v${version}";
rev = "refs/tags/v${version}";
hash = "sha256-GVPMAwxbq9XlKjMKd9G5yUol42f+6lSyHukN7NMCVDA=";
};

# Use .NET 9.0 since 7.0 is EOL
postPatch = ''
substituteInPlace Lumafly/Lumafly.csproj \
--replace "net7.0" "net9.0"
'';

projectFile = "Lumafly/Lumafly.csproj";

nugetDeps = ./deps.nix;

dotnet-sdk = dotnetCorePackages.sdk_7_0;
dotnet-sdk = dotnetCorePackages.sdk_9_0;

selfContainedBuild = true;

Expand All @@ -40,21 +46,25 @@ buildDotnetModule rec {
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 = meta.description;
type = "Application";
categories = [ "Game" ];
})];
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 = "A cross platform mod manager for Hollow Knight written in Avalonia";
Expand Down

0 comments on commit f49c764

Please sign in to comment.