From 4a7fd7f12b3fdb7c233b342e9ae2646077acd7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 3 Sep 2025 20:06:12 +0200 Subject: [PATCH] Partially revert "ArchiSteamFarm: publish plugins with dotnetInstallPhase" This partially reverts commit 83117ab9302e9b94e9c6ca3afe194dd50d5bbed9. --- pkgs/applications/misc/ArchiSteamFarm/default.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pkgs/applications/misc/ArchiSteamFarm/default.nix b/pkgs/applications/misc/ArchiSteamFarm/default.nix index 7609f3db64f5..3ffdbe7cc269 100644 --- a/pkgs/applications/misc/ArchiSteamFarm/default.nix +++ b/pkgs/applications/misc/ArchiSteamFarm/default.nix @@ -63,7 +63,7 @@ buildDotnetModule rec { doCheck = true; - installPhase = '' + preInstall = '' dotnetProjectFiles=(ArchiSteamFarm) # A mutable path, with this directory tree must be set. By default, this would point at the nix store causing errors. @@ -71,14 +71,15 @@ buildDotnetModule rec { --run 'mkdir -p ~/.config/archisteamfarm/{config,logs,plugins}' --set "ASF_PATH" "~/.config/archisteamfarm" ) + ''; - dotnetInstallPhase - + postInstall = '' buildPlugin() { echo "Publishing plugin $1" - dotnetProjectFiles=("$1") - dotnetInstallPath="$out/lib/ArchiSteamFarm/plugins/$1" - dotnetInstallPhase + dotnet publish $1 -p:ContinuousIntegrationBuild=true -p:Deterministic=true \ + --output $out/lib/ArchiSteamFarm/plugins/$1 --configuration Release \ + --no-restore --no-build --runtime $dotnetRuntimeIds \ + $dotnetFlags $dotnetInstallFlags } ''