about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/polaris/web.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/servers/polaris/web.nix')
-rw-r--r--nixpkgs/pkgs/servers/polaris/web.nix38
1 files changed, 38 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/polaris/web.nix b/nixpkgs/pkgs/servers/polaris/web.nix
new file mode 100644
index 000000000000..1834c01a0547
--- /dev/null
+++ b/nixpkgs/pkgs/servers/polaris/web.nix
@@ -0,0 +1,38 @@
+{ lib
+, buildNpmPackage
+, fetchFromGitHub
+}:
+
+buildNpmPackage rec {
+  pname = "polaris-web";
+  version = "69";
+
+  src = fetchFromGitHub {
+    owner = "agersant";
+    repo = "polaris-web";
+    rev = "build-${version}";
+    hash = "sha256-/UmAOunc/79DpZByUrzqNA7q7JNugEceKRZvyTGhtVQ=";
+  };
+
+  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 ];
+  };
+}