35 lines
850 B
Nix
35 lines
850 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchCrate,
|
|
makeWrapper,
|
|
wasm-pack,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "perseus-cli";
|
|
version = "0.3.1";
|
|
|
|
src = fetchCrate {
|
|
inherit (finalAttrs) pname version;
|
|
hash = "sha256-IYjLx9/4oWSXa4jhOtGw1GOHmrR7LQ6bWyN5zbOuEFs=";
|
|
};
|
|
|
|
cargoHash = "sha256-9McjhdS6KrFgtWIaP0qKsUYpPxGQjNX7SM9gJ/aJGwc=";
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/perseus \
|
|
--prefix PATH : "${lib.makeBinPath [ wasm-pack ]}"
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://framesurge.sh/perseus/en-US";
|
|
description = "High-level web development framework for Rust with full support for server-side rendering and static generation";
|
|
maintainers = with lib.maintainers; [ max-niederman ];
|
|
license = lib.licenses.mit;
|
|
mainProgram = "perseus";
|
|
};
|
|
})
|