Unverified Commit cf6dbf65 authored by kirillrdy's avatar kirillrdy Committed by GitHub
Browse files

Merge pull request #306907 from rohanssrao/master

lumafly: init at 3.2.0.0
parents a2159395 bf22d293
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -17325,6 +17325,12 @@
    githubId = 69053978;
    name = "rogarb";
  };
  rohanssrao = {
    email = "rohanssrao@gmail.com";
    github = "rohanssrao";
    githubId = 17805516;
    name = "Rohan Rao";
  };
  rollf = {
    email = "rolf.schroeder@limbus-medtec.com";
    github = "rollf";
+729 −0

File added.

Preview size limit exceeded, changes collapsed.

+75 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildDotnetModule,
  dotnetCorePackages,
  zlib,
  icu,
  fontconfig,
  openssl,
  libX11,
  libICE,
  libSM,
  icoutils,
  copyDesktopItems,
  makeDesktopItem,
}:
buildDotnetModule rec {
  pname = "lumafly";
  version = "3.2.0.0";

  src = fetchFromGitHub {
    owner = "TheMulhima";
    repo = "lumafly";
    rev = "v${version}";
    hash = "sha256-oDSM5Ev9SCjbvCgDZcpzm2bVnzG04yy/WaSwJyh0b18=";
  };

  projectFile = "Lumafly/Lumafly.csproj";

  nugetDeps = ./deps.nix;

  dotnet-sdk = dotnetCorePackages.sdk_7_0;

  selfContainedBuild = true;

  runtimeDeps = [
    zlib
    icu
    fontconfig
    openssl
    libX11
    libICE
    libSM
  ];

  nativeBuildInputs = [
    icoutils
    copyDesktopItems
  ];

  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" ];
  })];

  meta = {
    description = "A 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;
  };
}