8 inherit (darwin.apple_sdk.frameworks)
12 inherit (lib) optionals;
13 inherit (stdenv.hostPlatform) isDarwin;
15 rustPlatform.buildRustPackage rec {
16 pname = "cargo-leptos";
19 src = fetchFromGitHub {
23 hash = "sha256-Oe65m9io7ihymUjylaWHQM/x7r0y/xXqD313H3oyjN8=";
26 cargoHash = "sha256-wZNtEr6IAy+OABpTm93rOhKAP1NEEYUvokjaVdoaSG4=";
28 buildInputs = optionals isDarwin [
34 # https://github.com/leptos-rs/cargo-leptos#dependencies
35 buildFeatures = [ "no_downloads" ]; # cargo-leptos will try to install missing dependencies on its own otherwise
36 doCheck = false; # Check phase tries to query crates.io
39 description = "Build tool for the Leptos web framework";
40 mainProgram = "cargo-leptos";
41 homepage = "https://github.com/leptos-rs/cargo-leptos";
42 changelog = "https://github.com/leptos-rs/cargo-leptos/releases/tag/v${version}";
43 license = with licenses; [ mit ];
44 maintainers = with maintainers; [ benwis ];