2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
2023-08-04 22:07:22 +00:00
|
|
|
, buildNpmPackage
|
2022-07-14 12:49:19 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
buildNpmPackage rec {
|
2022-07-14 12:49:19 +00:00
|
|
|
pname = "polaris-web";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "68";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "agersant";
|
|
|
|
repo = "polaris-web";
|
2023-08-04 22:07:22 +00:00
|
|
|
rev = "build-${version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-YvVNTqv/DQzRyMuDgDdtCyoQbt4EqVztGa0NO92pO/Q=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
npmDepsHash = "sha256-c11CWJB76gX+Bxmqac3VxWjJxQVzYCaaf+pmQQpnOds=";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
env.CYPRESS_INSTALL_BINARY = "0";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
npmBuildScript = "production";
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/share
|
|
|
|
cp -a dist $out/share/polaris-web
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Web client for Polaris";
|
|
|
|
homepage = "https://github.com/agersant/polaris-web";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ pbsds ];
|
|
|
|
};
|
|
|
|
}
|