2021-11-14 21:19:26 +00:00
|
|
|
{ lib
|
2022-12-30 16:36:18 +00:00
|
|
|
, stdenv
|
2021-11-14 21:19:26 +00:00
|
|
|
, buildDotnetModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, dotnetCorePackages
|
|
|
|
, libkrb5
|
|
|
|
, zlib
|
|
|
|
, openssl
|
2021-12-04 14:15:04 +00:00
|
|
|
, callPackage
|
2021-12-11 19:47:05 +00:00
|
|
|
, stdenvNoCC
|
2021-11-14 21:19:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "archisteamfarm";
|
2022-04-13 10:09:15 +00:00
|
|
|
# nixpkgs-update: no auto update
|
2022-12-30 20:08:48 +00:00
|
|
|
version = "5.4.0.3";
|
2021-11-14 21:19:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "justarchinet";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-12-30 20:08:48 +00:00
|
|
|
sha256 = "sha256-+S0nvgiMxSUQI/TzAMES6bAix1iudj1+EkOcXO+6igE=";
|
2020-06-15 17:29:02 +00:00
|
|
|
};
|
|
|
|
|
2022-12-30 20:08:48 +00:00
|
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_7_0;
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_7_0;
|
2021-11-30 04:43:41 +00:00
|
|
|
|
2022-08-22 19:50:30 +00:00
|
|
|
nugetDeps = ./deps.nix;
|
|
|
|
|
2021-11-14 21:19:26 +00:00
|
|
|
projectFile = "ArchiSteamFarm.sln";
|
|
|
|
executables = [ "ArchiSteamFarm" ];
|
2022-12-30 16:36:18 +00:00
|
|
|
dotnetFlags = [
|
|
|
|
"-p:PublishSingleFile=true"
|
|
|
|
"-p:PublishTrimmed=true"
|
|
|
|
];
|
|
|
|
selfContainedBuild = true;
|
2020-05-20 16:49:01 +00:00
|
|
|
|
2021-11-14 21:19:26 +00:00
|
|
|
runtimeDeps = [ libkrb5 zlib openssl ];
|
2020-06-15 17:29:02 +00:00
|
|
|
|
2021-11-14 21:19:26 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2022-12-30 16:36:18 +00:00
|
|
|
preBuild = ''
|
|
|
|
export projectFile=(ArchiSteamFarm)
|
|
|
|
'';
|
|
|
|
|
2021-11-14 21:19:26 +00:00
|
|
|
preInstall = ''
|
|
|
|
# A mutable path, with this directory tree must be set. By default, this would point at the nix store causing errors.
|
|
|
|
makeWrapperArgs+=(
|
2021-12-04 14:15:04 +00:00
|
|
|
--run 'mkdir -p ~/.config/archisteamfarm/{config,logs,plugins}'
|
2021-11-30 04:43:41 +00:00
|
|
|
--set "ASF_PATH" "~/.config/archisteamfarm"
|
2021-11-14 21:19:26 +00:00
|
|
|
)
|
2020-05-20 16:49:01 +00:00
|
|
|
'';
|
|
|
|
|
2022-12-30 16:36:18 +00:00
|
|
|
postInstall = ''
|
|
|
|
buildPlugin() {
|
|
|
|
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
|
|
|
|
}
|
|
|
|
buildPlugin ArchiSteamFarm.OfficialPlugins.SteamTokenDumper
|
|
|
|
'';
|
|
|
|
|
2021-12-04 14:15:04 +00:00
|
|
|
passthru = {
|
2022-12-30 20:08:48 +00:00
|
|
|
# nix-shell maintainers/scripts/update.nix --argstr package ArchiSteamFarm
|
2022-06-06 00:13:56 +00:00
|
|
|
updateScript = ./update.sh;
|
2021-12-04 14:15:04 +00:00
|
|
|
ui = callPackage ./web-ui { };
|
|
|
|
};
|
2021-11-14 21:19:26 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-20 16:49:01 +00:00
|
|
|
description = "Application with primary purpose of idling Steam cards from multiple accounts simultaneously";
|
|
|
|
homepage = "https://github.com/JustArchiNET/ArchiSteamFarm";
|
|
|
|
license = licenses.asl20;
|
2021-12-30 21:54:27 +00:00
|
|
|
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
2021-12-01 23:19:48 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 lom ];
|
2020-05-20 16:49:01 +00:00
|
|
|
};
|
|
|
|
}
|