2023-05-24 13:37:59 +00:00
|
|
|
{ lib, fetchFromGitHub, buildNpmPackage, nodePackages, ArchiSteamFarm }:
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildNpmPackage {
|
|
|
|
pname = "asf-ui";
|
|
|
|
inherit (ArchiSteamFarm) version;
|
2022-01-13 20:06:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "JustArchiNET";
|
|
|
|
repo = "ASF-ui";
|
|
|
|
# updated by the update script
|
|
|
|
# this is always the commit that should be used with asf-ui from the latest asf version
|
2023-10-09 19:29:22 +00:00
|
|
|
rev = "0b812a7ab0d2f01a675d27f80008ad7b6972b4aa";
|
|
|
|
hash = "sha256-ut0x/qT3DyDASW4QbNT+BF6eXHCIbTol5E+3+tirFDA=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
npmDepsHash = "sha256-HpBEoAIGejpHJnUciz4iWILcXdgpw7X1xFuXmx9Z9dw=";
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
mkdir $out
|
|
|
|
cp -rv dist/* $out/
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
runHook postInstall
|
2022-07-14 12:49:19 +00:00
|
|
|
'';
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "The official web interface for ASF";
|
2023-07-15 17:15:38 +00:00
|
|
|
license = licenses.asl20;
|
2022-07-14 12:49:19 +00:00
|
|
|
homepage = "https://github.com/JustArchiNET/ASF-ui";
|
|
|
|
inherit (ArchiSteamFarm.meta) maintainers platforms;
|
|
|
|
};
|
|
|
|
}
|