2023-08-04 22:07:22 +00:00
|
|
|
{ lib, fetchCrate, rustPlatform, openssl, pkg-config, cacert, stdenv, CoreServices }:
|
2022-09-30 11:47:45 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "dioxus-cli";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.3.2";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
src = fetchCrate {
|
|
|
|
inherit pname version;
|
2023-08-04 22:07:22 +00:00
|
|
|
sha256 = "sha256-8S8zUOb2oiXbJQRgY/g9H2+EW+wWOQugr8+ou34CYPg=";
|
2022-09-30 11:47:45 +00:00
|
|
|
};
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
nativeBuildInputs = [ pkg-config cacert ];
|
2022-10-21 18:38:19 +00:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ CoreServices ];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
cargoSha256 = "sha256-sCP8njwYA29XmYu2vfuog0NCL1tZlsZiupkDVImrYCE=";
|
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# these tests require dioxous binary in PATH,
|
|
|
|
# can be removed after: https://github.com/DioxusLabs/dioxus/pull/1138
|
|
|
|
"--skip=cli::autoformat::spawn_properly"
|
|
|
|
"--skip=cli::translate::generates_svgs"
|
|
|
|
];
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|