2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, unzip, makeWrapper, dotnetCorePackages, jq }:
|
2020-05-20 18:49:01 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ArchiSteamFarm";
|
2020-10-19 21:40:12 +02:00
|
|
|
version = "4.3.1.0";
|
2020-06-15 19:29:02 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/JustArchiNET/ArchiSteamFarm/releases/download/${version}/ASF-generic.zip";
|
2020-10-19 21:40:12 +02:00
|
|
|
sha256 = "1q28byshh4wkfsfdb0sfdqq9a5da9k7i4nagsfpk0fzyajvzd4lx";
|
2020-06-15 19:29:02 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip makeWrapper jq ];
|
2020-05-20 18:49:01 +02:00
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
dist=$out/opt/asf
|
|
|
|
mkdir -p $dist
|
|
|
|
cp -r * $dist
|
2020-06-15 19:29:02 +02:00
|
|
|
|
|
|
|
jq "del(.runtimeOptions.framework.version)" ArchiSteamFarm.runtimeconfig.json > $dist/ArchiSteamFarm.runtimeconfig.json
|
|
|
|
|
|
|
|
makeWrapper ${dotnetCorePackages.aspnetcore_3_1}/bin/dotnet $out/bin/ArchiSteamFarm \
|
|
|
|
--add-flags $dist/ArchiSteamFarm.dll \
|
2020-05-20 18:49:01 +02:00
|
|
|
--add-flags "--path ~/.config/asf" \
|
|
|
|
--run "mkdir -p ~/.config/asf" \
|
|
|
|
--run "cd ~/.config/asf" \
|
|
|
|
--run "[ -d config ] || cp --no-preserve=mode -r $dist/config ." \
|
|
|
|
--run "[ -d logs ] || cp --no-preserve=mode -r $dist/logs ." \
|
|
|
|
--run "[ -d plugins ] || cp --no-preserve=mode -r $dist/plugins ." \
|
2020-08-06 08:26:06 +02:00
|
|
|
--run "ln -sf $dist/www ."
|
2020-05-20 18:49:01 +02:00
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-05-20 18:49:01 +02:00
|
|
|
description = "Application with primary purpose of idling Steam cards from multiple accounts simultaneously";
|
|
|
|
homepage = "https://github.com/JustArchiNET/ArchiSteamFarm";
|
|
|
|
license = licenses.asl20;
|
2020-06-15 19:29:02 +02:00
|
|
|
platforms = dotnetCorePackages.aspnetcore_3_1.meta.platforms;
|
2021-04-29 07:21:13 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2020-05-20 18:49:01 +02:00
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|