1{ lib, fetchCrate, rustPlatform, openssl, pkg-config, stdenv, CoreServices }:
2rustPlatform.buildRustPackage rec {
3 pname = "dioxus-cli";
4 version = "0.1.4";
5
6 src = fetchCrate {
7 inherit pname version;
8 sha256 = "sha256-SnmDOMxc+39LX6kOzma2zA6T91UGCnvr7WWhX+wXnLo=";
9 };
10
11 nativeBuildInputs = [ pkg-config ];
12 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ CoreServices ];
13
14 cargoSha256 = "sha256-Mf/WtOO/vFuhg90DoPDwOZ6XKj423foHZ8vHugXakb0=";
15
16 meta = with lib; {
17 description = "CLI tool for developing, testing, and publishing Dioxus apps";
18 homepage = "https://dioxuslabs.com";
19 license = with licenses; [ mit asl20 ];
20 maintainers = with maintainers; [ xanderio ];
21 };
22}