Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
932 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
fetchFromGitHub,
buildDotnetModule,
dotnetCorePackages,
lib,
}:
buildDotnetModule rec {
version = "1.0.0";
pname = "PS2PatchElf";
src = fetchFromGitHub {
owner = "CaptainSwag101";
repo = "PS2PatchElf";
tag = "v${version}";
hash = "sha256-iQL3tT71UOEFIYBdf9BNLUM4++Fm9qEhr77NkMCZdrU=";
};
patches = [
./patches/target_net8.0.patch
./patches/fix_arg_check.patch
];
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
dotnetFlags = [ "-p:TargetFramework=net8.0" ];
nugetDeps = ./deps.json;
projectFile = "PS2PatchElf/PS2PatchElf.csproj";
meta = {
homepage = "https://github.com/CaptainSwag101/PS2PatchElf/";
description = "Very basic tool for converting PCSX2 .pnach cheats to game executable patches";
maintainers = [ lib.maintainers.gigahawk ];
mainProgram = "PS2PatchElf";
license = lib.licenses.mit;
};
}