2022-06-17 20:03:34 +02:00
|
|
|
{ lib
|
2023-07-26 07:17:29 +02:00
|
|
|
, buildNpmPackage
|
2022-06-17 20:03:34 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2023-07-26 07:17:29 +02:00
|
|
|
buildNpmPackage rec {
|
2022-06-17 20:03:34 +02:00
|
|
|
pname = "polaris-web";
|
2023-09-30 17:17:20 +02:00
|
|
|
version = "68";
|
2022-06-17 20:03:34 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "agersant";
|
|
|
|
repo = "polaris-web";
|
2023-07-26 07:23:06 +02:00
|
|
|
rev = "build-${version}";
|
2023-09-30 17:17:20 +02:00
|
|
|
hash = "sha256-YvVNTqv/DQzRyMuDgDdtCyoQbt4EqVztGa0NO92pO/Q=";
|
2022-06-17 20:03:34 +02:00
|
|
|
};
|
|
|
|
|
2023-09-30 17:17:20 +02:00
|
|
|
npmDepsHash = "sha256-c11CWJB76gX+Bxmqac3VxWjJxQVzYCaaf+pmQQpnOds=";
|
2022-06-17 20:03:34 +02:00
|
|
|
|
2023-07-26 07:17:29 +02:00
|
|
|
env.CYPRESS_INSTALL_BINARY = "0";
|
2022-06-17 20:03:34 +02:00
|
|
|
|
2023-07-26 07:17:29 +02:00
|
|
|
npmBuildScript = "production";
|
2022-06-17 20:03:34 +02: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 ];
|
|
|
|
};
|
|
|
|
}
|