Skip to content

Commit

Permalink
ArchiSteamFarm: choose correct framework instead of patching
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Mar 10, 2023
1 parent c1222f0 commit a6e176c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 30 deletions.
12 changes: 6 additions & 6 deletions pkgs/applications/misc/ArchiSteamFarm/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ buildDotnetModule rec {
sha256 = "sha256-SRWqe8KTjFdgVW7/EYRVUONtDWwxpcZ1GXWFPjKZzpI=";
};

patches = [
# otherwise installPhase fails with NETSDK1129
./fix-framework.diff
];

dotnet-runtime = dotnetCorePackages.aspnetcore_7_0;
dotnet-sdk = dotnetCorePackages.sdk_7_0;

Expand All @@ -38,6 +33,9 @@ buildDotnetModule rec {
"-p:PublishSingleFile=true"
"-p:PublishTrimmed=true"
];
dotnetInstallFlags = [
"--framework=net7.0"
];
selfContainedBuild = true;

runtimeDeps = [ libkrb5 zlib openssl ];
Expand All @@ -58,9 +56,11 @@ buildDotnetModule rec {

postInstall = ''
buildPlugin() {
echo "Publishing plugin $1"
dotnet publish $1 -p:ContinuousIntegrationBuild=true -p:Deterministic=true \
--output $out/lib/${pname}/plugins/$1 --configuration Release \
-p:TargetLatestRuntimePatch=false -p:UseAppHost=false --no-restore
-p:TargetLatestRuntimePatch=false -p:UseAppHost=false --no-restore \
--framework=net7.0
}
buildPlugin ArchiSteamFarm.OfficialPlugins.ItemsMatcher
Expand Down
24 changes: 0 additions & 24 deletions pkgs/applications/misc/ArchiSteamFarm/fix-framework.diff

This file was deleted.

0 comments on commit a6e176c

Please sign in to comment.