nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildNpmPackage,
5 ArchiSteamFarm,
6}:
7
8buildNpmPackage rec {
9 pname = "asf-ui";
10 version = "b984a9de784afb9d11364b3541961888cab8e025";
11
12 src = fetchFromGitHub {
13 owner = "JustArchiNET";
14 repo = "ASF-ui";
15 # updated by the update script
16 # this is always the commit that should be used with asf-ui from the latest asf version
17 rev = version;
18 hash = "sha256-qipcDwn6Jte8MRUIgmYSuMzs4sewItlzFIeupYKkg+A=";
19 };
20
21 npmDepsHash = "sha256-UhakvqDoWxt/nudEqUZcp8Bk0sIdYSXCYHv8YbsrWDU=";
22
23 installPhase = ''
24 runHook preInstall
25
26 mkdir $out
27 cp -rv dist/* $out/
28
29 runHook postInstall
30 '';
31
32 meta = with lib; {
33 description = "Official web interface for ASF";
34 license = licenses.asl20;
35 homepage = "https://github.com/JustArchiNET/ASF-ui";
36 inherit (ArchiSteamFarm.meta) maintainers platforms;
37 };
38}