14910f5943
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
40 lines
1.2 KiB
Nix
40 lines
1.2 KiB
Nix
{ lib, pkgs, fetchFromGitHub, nodejs, stdenv, ArchiSteamFarm, ... }:
|
|
|
|
let
|
|
nodePackages = import ./node-composition.nix {
|
|
inherit pkgs nodejs;
|
|
inherit (stdenv.hostPlatform) system;
|
|
};
|
|
|
|
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
|
|
rev = "e292b5e3c37b0540d398fb4a04b10dd730976a5a";
|
|
sha256 = "1sxv2xkps2fln7di0i406nnhdqg4wd2yzgvwm5nfhawsq941g19z";
|
|
};
|
|
|
|
in
|
|
nodePackages.package.override {
|
|
inherit src;
|
|
|
|
# upstream isn't tagged, but we are using the latest official commit for that specific asf version (assuming both get updated at the same time)
|
|
version = ArchiSteamFarm.version;
|
|
|
|
nativeBuildInputs = [ pkgs.nodePackages.node-gyp-build ];
|
|
|
|
postInstall = ''
|
|
patchShebangs node_modules/
|
|
npm run build
|
|
ln -s $out/lib/node_modules/asf-ui/dist $out/lib/dist
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "The official web interface for ASF";
|
|
license = licenses.apsl20;
|
|
homepage = "https://github.com/JustArchiNET/ASF-ui";
|
|
platforms = ArchiSteamFarm.meta.platforms;
|
|
maintainers = with maintainers; [ lom ];
|
|
};
|
|
}
|