2022-06-17 18:03:34 +00:00
|
|
|
{ lib
|
2023-07-26 05:17:29 +00:00
|
|
|
, buildNpmPackage
|
2022-06-17 18:03:34 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
2023-07-26 05:17:29 +00:00
|
|
|
buildNpmPackage rec {
|
2022-06-17 18:03:34 +00:00
|
|
|
pname = "polaris-web";
|
2024-01-23 01:32:46 +00:00
|
|
|
version = "69";
|
2022-06-17 18:03:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "agersant";
|
|
|
|
repo = "polaris-web";
|
2023-07-26 05:23:06 +00:00
|
|
|
rev = "build-${version}";
|
2024-01-23 01:32:46 +00:00
|
|
|
hash = "sha256-/UmAOunc/79DpZByUrzqNA7q7JNugEceKRZvyTGhtVQ=";
|
2022-06-17 18:03:34 +00:00
|
|
|
};
|
|
|
|
|
2023-09-30 15:17:20 +00:00
|
|
|
npmDepsHash = "sha256-c11CWJB76gX+Bxmqac3VxWjJxQVzYCaaf+pmQQpnOds=";
|
2022-06-17 18:03:34 +00:00
|
|
|
|
2023-07-26 05:17:29 +00:00
|
|
|
env.CYPRESS_INSTALL_BINARY = "0";
|
2022-06-17 18:03:34 +00:00
|
|
|
|
2023-07-26 05:17:29 +00:00
|
|
|
npmBuildScript = "production";
|
2022-06-17 18:03:34 +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 ];
|
|
|
|
};
|
|
|
|
}
|