about summary refs log tree commit diff
path: root/pkgs/development/tools/perseus-cli
diff options
context:
space:
mode:
authorMax Niederman <max@maxniederman.com>2021-12-29 07:34:10 -0800
committerMax Niederman <max@maxniederman.com>2021-12-29 15:08:21 -0800
commit29cf34c45567e1090d68b80d76000b28fc1d2018 (patch)
treebf06ff2feb5b5cd584c436a0700fec6477cef4db /pkgs/development/tools/perseus-cli
parent93de1585abe702a7f67706b4f4020a4d0016802e (diff)
perseus-cli: init at 0.3.0
Diffstat (limited to 'pkgs/development/tools/perseus-cli')
-rw-r--r--pkgs/development/tools/perseus-cli/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/tools/perseus-cli/default.nix b/pkgs/development/tools/perseus-cli/default.nix
new file mode 100644
index 0000000000000..9ec8aa21e2d31
--- /dev/null
+++ b/pkgs/development/tools/perseus-cli/default.nix
@@ -0,0 +1,28 @@
+{ lib, rustPlatform, fetchCrate, makeWrapper, wasm-pack }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "perseus-cli";
+  version = "0.3.0";
+
+  src = fetchCrate {
+    inherit pname version;
+    sha256 = "sha256-YyQQjuxNUxuo2PFluGyT/CpG22tgjRCfmFKA5MFRgHo=";
+  };
+
+  cargoSha256 = "sha256-SKxPsltXFH+ENexn/KDD43hGLSTgvtU9hv9Vdi2oeFA=";
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  postInstall = ''
+    wrapProgram $out/bin/perseus \
+      --prefix PATH : "${lib.makeBinPath [ wasm-pack ]}"
+  '';
+
+  meta = with lib; {
+    homepage = "https://arctic-hen7.github.io/perseus";
+    description = "A high-level web development framework for Rust with full support for server-side rendering and static generation";
+    maintainers = with maintainers; [ max-niederman ];
+    license = with licenses; [ mit ];
+    mainProgram = "perseus";
+  };
+}