depot/third_party/nixpkgs/pkgs/servers/polaris/web.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

38 lines
776 B
Nix

{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "polaris-web";
version = "68";
src = fetchFromGitHub {
owner = "agersant";
repo = "polaris-web";
rev = "build-${version}";
hash = "sha256-YvVNTqv/DQzRyMuDgDdtCyoQbt4EqVztGa0NO92pO/Q=";
};
npmDepsHash = "sha256-c11CWJB76gX+Bxmqac3VxWjJxQVzYCaaf+pmQQpnOds=";
env.CYPRESS_INSTALL_BINARY = "0";
npmBuildScript = "production";
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 ];
};
}