1{
2 lib,
3 buildNpmPackage,
4 fetchFromGitHub,
5}:
6
7buildNpmPackage rec {
8 pname = "polaris-web";
9 version = "69";
10
11 src = fetchFromGitHub {
12 owner = "agersant";
13 repo = "polaris-web";
14 rev = "build-${version}";
15 hash = "sha256-/UmAOunc/79DpZByUrzqNA7q7JNugEceKRZvyTGhtVQ=";
16 };
17
18 npmDepsHash = "sha256-c11CWJB76gX+Bxmqac3VxWjJxQVzYCaaf+pmQQpnOds=";
19
20 env.CYPRESS_INSTALL_BINARY = "0";
21
22 npmBuildScript = "production";
23
24 installPhase = ''
25 runHook preInstall
26
27 mkdir -p $out/share
28 cp -a dist $out/share/polaris-web
29
30 runHook postInstall
31 '';
32
33 meta = with lib; {
34 description = "Web client for Polaris";
35 homepage = "https://github.com/agersant/polaris-web";
36 license = licenses.mit;
37 maintainers = with maintainers; [ pbsds ];
38 };
39}