Files
nixpkgs/pkgs/by-name/ps/ps2patchelf/package.nix
Dark Steveneq 646b892680
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
push sheeet
2025-10-09 14:15:47 +02:00

41 lines
932 B
Nix

{
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;
};
}