about summary refs log tree commit diff
path: root/pkgs/development/tools/rust/dioxus-cli/default.nix
blob: b1756e62ee6ee9b8586788298f0a68067905cc76 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, fetchCrate, rustPlatform, openssl, pkg-config, stdenv, CoreServices }:
rustPlatform.buildRustPackage rec {
  pname = "dioxus-cli";
  version = "0.1.4";

  src = fetchCrate {
    inherit pname version;
    sha256 = "sha256-SnmDOMxc+39LX6kOzma2zA6T91UGCnvr7WWhX+wXnLo=";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ CoreServices ];

  cargoSha256 = "sha256-Mf/WtOO/vFuhg90DoPDwOZ6XKj423foHZ8vHugXakb0=";

  meta = with lib; {
    description = "CLI tool for developing, testing, and publishing Dioxus apps";
    homepage = "https://dioxuslabs.com";
    license = with licenses; [ mit asl20 ];
    maintainers = with maintainers; [ xanderio ];
  };
}