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-08-04 22:07:22 +00:00
|
|
|
version = "67";
|
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}";
|
|
|
|
hash = "sha256-mhrgHNbqxLhhLWP4eu1A3ytrx9Q3X0EESL2LuTfgsBE=";
|
2022-07-14 12:49:19 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
npmDepsHash = "sha256-lScXbxkJiRq5LLFkoz5oZsmKz8I/t1rZJVonfct9r+0=";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|