nixpkgs/pkgs/servers/polaris/web.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
776 B
Nix
Raw Normal View History

{ lib
2023-07-26 07:17:29 +02:00
, buildNpmPackage
, fetchFromGitHub
}:
2023-07-26 07:17:29 +02:00
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=";
2023-07-26 07:17:29 +02:00
env.CYPRESS_INSTALL_BINARY = "0";
2023-07-26 07:17:29 +02:00
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 ];
};
}