2023-11-16 04:20:00 +00:00
|
|
|
{ lib, fetchFromGitHub, buildNpmPackage, ArchiSteamFarm }:
|
2022-01-13 20:06:32 +00:00
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
buildNpmPackage rec {
|
2023-05-24 13:37:59 +00:00
|
|
|
pname = "asf-ui";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "7406f7126a8351db67aad9f3a0f90c9dc123d80d";
|
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-11-16 04:20:00 +00:00
|
|
|
rev = version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-yTBJoihDc4z4+a03S56MQORvz/l6aqBDzLEi0UrM1N4=";
|
2022-01-13 20:06:32 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
npmDepsHash = "sha256-S/OwjmfAyEVZfWQ7vqKFctbJRqED0HVJlWEGXrqB1Ys=";
|
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;
|
|
|
|
};
|
|
|
|
}
|