2024-07-21 02:42:48 +02:00
|
|
|
{
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pkg-config,
|
|
|
|
rustPlatform,
|
|
|
|
stdenv,
|
|
|
|
}: let
|
|
|
|
inherit (lib) optionals;
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "cargo-leptos";
|
2024-09-05 22:33:13 +02:00
|
|
|
version = "0.2.20";
|
2024-07-21 02:42:48 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "leptos-rs";
|
|
|
|
repo = pname;
|
2024-09-05 22:33:13 +02:00
|
|
|
rev = "v0.2.20";
|
|
|
|
hash = "sha256-45zus+mNOiWWbuF50XpMwc1B6Uoy5E1kUQmtdGVc46g=";
|
2024-07-21 02:42:48 +02:00
|
|
|
};
|
|
|
|
|
2024-09-05 22:33:13 +02:00
|
|
|
cargoHash = "sha256-54CRNSDWdqD582Vv6d8snYEJrpkQ2Cvp8sjgQ6BcvHY=";
|
2024-07-21 02:42:48 +02:00
|
|
|
|
|
|
|
# https://github.com/leptos-rs/cargo-leptos#dependencies
|
|
|
|
buildFeatures = ["no_downloads"]; # cargo-leptos will try to install missing dependencies on its own otherwise
|
|
|
|
doCheck = false; # Check phase tries to query crates.io
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A build tool for the Leptos web framework";
|
|
|
|
homepage = "https://github.com/leptos-rs/cargo-leptos";
|
|
|
|
changelog = "https://github.com/leptos-rs/cargo-leptos/releases/tag/${version}";
|
|
|
|
license = with licenses; [mit];
|
|
|
|
maintainers = with maintainers; [benwis];
|
|
|
|
};
|
|
|
|
}
|