dioxus-cli: 0.4.3 -> 0.5.0

This commit is contained in:
Lin Xianyi
2024-03-28 23:09:23 +08:00
parent 7232f19f7f
commit b06108483e
@@ -3,6 +3,7 @@
, fetchCrate
, rustPlatform
, pkg-config
, rustfmt
, cacert
, openssl
, darwin
@@ -12,38 +13,31 @@
rustPlatform.buildRustPackage rec {
pname = "dioxus-cli";
version = "0.4.3";
version = "0.5.0";
src = fetchCrate {
inherit pname version;
hash = "sha256-TWcuEobYH2xpuwB1S63HoP/WjH3zHXTnlXXvOcYIZG8=";
hash = "sha256-iNlJLDxb8v7x19q0iaAnGmtmoPjMW8YXzbx5Fcf8Yws=";
};
cargoHash = "sha256-ozbGK46uq3qXZifyTY7DDX1+vQuDJuSOJZw35vwcuxY=";
cargoHash = "sha256-6XKNBLDNWYd5+O7buHupXzVss2jCdh3wu9mXVLivH44=";
nativeBuildInputs = [ pkg-config cacert ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.SystemConfiguration
];
OPENSSL_NO_VENDOR = 1;
nativeCheckInputs = [ rustfmt ];
checkFlags = [
# requires network access
"--skip=server::web::proxy::test::add_proxy"
"--skip=server::web::proxy::test::add_proxy_trailing_slash"
];
# Omitted: --doc
# Can be removed after 0.4.3 or when https://github.com/DioxusLabs/dioxus/pull/1706 is resolved
# Matches upstream package test CI https://github.com/DioxusLabs/dioxus/blob/544ca5559654c8490ce444c3cbd85c1bfb8479da/Makefile.toml#L94-L108
cargoTestFlags = [
"--lib"
"--bins"
"--tests"
"--examples"
];
passthru.tests.version = testers.testVersion {
package = dioxus-cli;
command = "${meta.mainProgram} --version";