2020-06-15 18:29:02 +01:00
|
|
|
{ stdenv, fetchurl, unzip, makeWrapper, dotnetCorePackages, jq }:
|
2020-05-20 17:49:01 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ArchiSteamFarm";
|
2020-06-26 14:13:27 +01:00
|
|
|
version = "4.2.3.3";
|
2020-06-15 18:29:02 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/JustArchiNET/ArchiSteamFarm/releases/download/${version}/ASF-generic.zip";
|
2020-06-26 14:13:27 +01:00
|
|
|
sha256 = "0v69rrs5fr1n5llfx42xkiish52al7kb36fjy3ng0j9qfp3g8pj7";
|
2020-06-15 18:29:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ unzip makeWrapper jq ];
|
2020-05-20 17:49:01 +01:00
|
|
|
|
|
|
|
sourceRoot = ".";
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
dist=$out/opt/asf
|
|
|
|
mkdir -p $dist
|
|
|
|
cp -r * $dist
|
2020-06-15 18:29:02 +01: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 17:49:01 +01: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-06-15 18:29:02 +01:00
|
|
|
--run "[ -d www ] || ln -sf $dist/www ."
|
2020-05-20 17:49:01 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 18:29:02 +01:00
|
|
|
platforms = dotnetCorePackages.aspnetcore_3_1.meta.platforms;
|
2020-05-20 17:49:01 +01:00
|
|
|
maintainers = with maintainers; [ gnidorah ];
|
|
|
|
hydraPlatforms = [];
|
|
|
|
};
|
|
|
|
}
|