nixpkgs/pkgs/development/tools/perseus-cli/default.nix

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

37 lines
928 B
Nix
Raw Normal View History

2022-01-03 01:38:31 +00:00
{ lib
, stdenv
, rustPlatform
, fetchCrate
, makeWrapper
, wasm-pack
, CoreServices
}:
2021-12-29 15:34:10 +00:00
rustPlatform.buildRustPackage rec {
pname = "perseus-cli";
2022-01-03 01:38:31 +00:00
version = "0.3.1";
2021-12-29 15:34:10 +00:00
src = fetchCrate {
inherit pname version;
2022-01-03 01:38:31 +00:00
sha256 = "sha256-IYjLx9/4oWSXa4jhOtGw1GOHmrR7LQ6bWyN5zbOuEFs=";
2021-12-29 15:34:10 +00:00
};
2022-01-03 01:38:31 +00:00
cargoSha256 = "sha256-i7MPmO9MoANZLzmR5gsD+v0gyDtFbzhsmE9xOsb88L0=";
2021-12-29 15:34:10 +00:00
nativeBuildInputs = [ makeWrapper ];
2022-01-03 01:38:31 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
2021-12-29 15:34:10 +00:00
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";
};
}