3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/ArchiSteamFarm/default.nix

56 lines
1.4 KiB
Nix
Raw Normal View History

{ lib
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, libkrb5
, zlib
, openssl
, callPackage
2021-12-11 19:47:05 +00:00
, stdenvNoCC
}:
buildDotnetModule rec {
pname = "archisteamfarm";
version = "5.2.0.10";
src = fetchFromGitHub {
owner = "justarchinet";
repo = pname;
rev = version;
sha256 = "sha256-okI58EpzKPd9IfC0K687inscmhO74vMeq8crEF/Xj3k=";
};
dotnet-runtime = dotnetCorePackages.aspnetcore_6_0;
dotnet-sdk = dotnetCorePackages.sdk_6_0;
2021-12-11 19:47:05 +00:00
nugetDeps = if stdenvNoCC.isAarch64 then ./deps-aarch64.nix else ./deps.nix;
projectFile = "ArchiSteamFarm.sln";
executables = [ "ArchiSteamFarm" ];
runtimeDeps = [ libkrb5 zlib openssl ];
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+=(
--run 'mkdir -p ~/.config/archisteamfarm/{config,logs,plugins}'
--set "ASF_PATH" "~/.config/archisteamfarm"
)
'';
passthru = {
updateScript = ./updater.sh;
ui = callPackage ./web-ui { };
};
meta = with lib; {
description = "Application with primary purpose of idling Steam cards from multiple accounts simultaneously";
homepage = "https://github.com/JustArchiNET/ArchiSteamFarm";
license = licenses.asl20;
2021-12-11 19:47:05 +00:00
platforms = [ "x86_64-linux" "aarch64-linux" "i386-linux" ];
maintainers = with maintainers; [ SuperSandro2000 lom ];
};
}