2021-11-14 21:19:26 +00:00
|
|
|
{ lib
|
|
|
|
, buildDotnetModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, dotnetCorePackages
|
|
|
|
, libkrb5
|
|
|
|
, zlib
|
|
|
|
, openssl
|
2021-11-30 04:43:41 +00:00
|
|
|
, fetchpatch
|
2021-11-14 21:19:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "archisteamfarm";
|
2021-11-30 04:43:41 +00:00
|
|
|
version = "5.2.0.9";
|
2021-11-14 21:19:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "justarchinet";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-11-30 04:43:41 +00:00
|
|
|
sha256 = "sha256-BGd75l/p2rvRR/S8uz25aFws8txBpd60iB0xPbfTngM=";
|
2020-06-15 18:29:02 +01:00
|
|
|
};
|
|
|
|
|
2021-11-30 04:43:41 +00:00
|
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
|
|
|
|
dotnet-sdk = dotnetCorePackages.sdk_6_0;
|
|
|
|
|
2021-11-14 21:19:26 +00:00
|
|
|
nugetDeps = ./deps.nix;
|
2020-05-20 17:49:01 +01:00
|
|
|
|
2021-11-14 21:19:26 +00:00
|
|
|
projectFile = "ArchiSteamFarm.sln";
|
|
|
|
executables = [ "ArchiSteamFarm" ];
|
2020-05-20 17:49:01 +01:00
|
|
|
|
2021-11-14 21:19:26 +00:00
|
|
|
runtimeDeps = [ libkrb5 zlib openssl ];
|
2020-06-15 18:29:02 +01:00
|
|
|
|
2021-11-14 21:19:26 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
preInstall = ''
|
|
|
|
# A mutable path, with this directory tree must be set. By default, this would point at the nix store causing errors.
|
|
|
|
makeWrapperArgs+=(
|
2021-11-30 04:43:41 +00:00
|
|
|
--run "mkdir -p \"~/.config/archisteamfarm/{config,logs,plugins}\""
|
|
|
|
--set "ASF_PATH" "~/.config/archisteamfarm"
|
2021-11-14 21:19:26 +00:00
|
|
|
)
|
2020-05-20 17:49:01 +01:00
|
|
|
'';
|
|
|
|
|
2021-11-14 21:19:26 +00:00
|
|
|
passthru.updateScript = ./updater.sh;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-20 17:49:01 +01:00
|
|
|
description = "Application with primary purpose of idling Steam cards from multiple accounts simultaneously";
|
|
|
|
homepage = "https://github.com/JustArchiNET/ArchiSteamFarm";
|
|
|
|
license = licenses.asl20;
|
2021-11-14 21:19:26 +00:00
|
|
|
platforms = dotnetCorePackages.aspnetcore_5_0.meta.platforms;
|
2021-12-01 23:19:48 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 lom ];
|
2020-05-20 17:49:01 +01:00
|
|
|
};
|
|
|
|
}
|