ripasso-cursive: cosmetic changes (#361736)
[NixPkgs.git] / pkgs / by-name / ca / cargo-leptos / package.nix
blob9bf841fe3ffabb341b0c248f61d4fbbeb19d6fb1
1 { darwin
2 , fetchFromGitHub
3 , lib
4 , rustPlatform
5 , stdenv
6 }:
7 let
8   inherit (darwin.apple_sdk.frameworks)
9     CoreServices
10     SystemConfiguration
11     Security;
12   inherit (lib) optionals;
13   inherit (stdenv.hostPlatform) isDarwin;
15 rustPlatform.buildRustPackage rec {
16   pname = "cargo-leptos";
17   version = "0.2.21";
19   src = fetchFromGitHub {
20     owner = "leptos-rs";
21     repo = pname;
22     rev = "v${version}";
23     hash = "sha256-Oe65m9io7ihymUjylaWHQM/x7r0y/xXqD313H3oyjN8=";
24   };
26   cargoHash = "sha256-wZNtEr6IAy+OABpTm93rOhKAP1NEEYUvokjaVdoaSG4=";
28   buildInputs = optionals isDarwin [
29     SystemConfiguration
30     Security
31     CoreServices
32   ];
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
38   meta = with lib; {
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 ];
45   };