openra: patch to build with .NET 8 (from EOL .NET 6) (#490249)

This commit is contained in:
David McFarland
2026-02-20 15:11:37 +00:00
committed by GitHub
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -35,6 +35,12 @@ buildDotnetModule {
nugetDeps = engine.deps;
# Retarget from net6.0 to net8.0 (net6.0 is EOL)
postPatch = ''
substituteInPlace Directory.Build.props \
--replace-fail ">net6.0<" ">net8.0<"
'';
useAppHost = false;
dotnetFlags = [ "-p:Version=0.0.0.0" ]; # otherwise dotnet build complains, version is saved in VERSION file anyway
@@ -5,5 +5,5 @@ buildOpenRAEngine {
version = "20250330";
hash = "sha256-chWkzn/NLZh2gOua9kE0ubRGjGCC0LvtZSWHBgXKqHw=";
deps = ./deps.json;
dotnet-sdk = dotnetCorePackages.sdk_6_0-bin;
dotnet-sdk = dotnetCorePackages.sdk_8_0;
}