2021-12-06 16:07:01 +00:00
|
|
|
{ lib
|
|
|
|
, buildDotnetModule
|
|
|
|
, fetchFromGitHub
|
|
|
|
, dotnetCorePackages
|
|
|
|
, libkrb5
|
|
|
|
, zlib
|
|
|
|
, openssl
|
2022-01-13 20:06:32 +00:00
|
|
|
, callPackage
|
|
|
|
, stdenvNoCC
|
2021-12-06 16:07:01 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildDotnetModule rec {
|
|
|
|
pname = "archisteamfarm";
|
2022-04-15 01:41:22 +00:00
|
|
|
# nixpkgs-update: no auto update
|
2022-10-30 15:09:59 +00:00
|
|
|
version = "5.3.1.2";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "justarchinet";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-10-30 15:09:59 +00:00
|
|
|
sha256 = "sha256-plimvkMUjQWQ0Ewm1TXL5IB1xe62DFhwBlBc4UeCguU=";
|
2020-06-18 07:06:33 +00:00
|
|
|
};
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
|
|
|
|
|
2022-09-14 18:05:37 +00:00
|
|
|
nugetDeps = ./deps.nix;
|
|
|
|
|
|
|
|
# Without this dotnet attempts to restore for Windows targets, which it cannot find the dependencies for
|
|
|
|
dotnetRestoreFlags = [ "--runtime ${dotnetCorePackages.sdk_6_0.systemToDotnetRid stdenvNoCC.targetPlatform.system}" ];
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
projectFile = "ArchiSteamFarm.sln";
|
|
|
|
executables = [ "ArchiSteamFarm" ];
|
2020-05-29 06:06:01 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
runtimeDeps = [ libkrb5 zlib openssl ];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2021-12-06 16:07:01 +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+=(
|
2022-01-13 20:06:32 +00:00
|
|
|
--run 'mkdir -p ~/.config/archisteamfarm/{config,logs,plugins}'
|
|
|
|
--set "ASF_PATH" "~/.config/archisteamfarm"
|
2021-12-06 16:07:01 +00:00
|
|
|
)
|
2020-05-29 06:06:01 +00:00
|
|
|
'';
|
|
|
|
|
2022-01-13 20:06:32 +00:00
|
|
|
passthru = {
|
2022-06-16 17:23:12 +00:00
|
|
|
updateScript = ./update.sh;
|
2022-01-13 20:06:32 +00:00
|
|
|
ui = callPackage ./web-ui { };
|
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-05-29 06:06: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;
|
2022-01-13 20:06:32 +00:00
|
|
|
platforms = [ "x86_64-linux" "aarch64-linux" ];
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ SuperSandro2000 lom ];
|
2020-05-29 06:06:01 +00:00
|
|
|
};
|
|
|
|
}
|