Merge pull request #299629 from iynaix/bump-dioxus-cli

dioxus-cli: 0.4.3 -> 0.5.0
This commit is contained in:
Mario Rodas 2024-03-30 05:07:41 -05:00 committed by GitHub
commit e3863ee018
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@
, fetchCrate , fetchCrate
, rustPlatform , rustPlatform
, pkg-config , pkg-config
, rustfmt
, cacert , cacert
, openssl , openssl
, darwin , darwin
@ -12,38 +13,31 @@
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "dioxus-cli"; pname = "dioxus-cli";
version = "0.4.3"; version = "0.5.0";
src = fetchCrate { src = fetchCrate {
inherit pname version; inherit pname version;
hash = "sha256-TWcuEobYH2xpuwB1S63HoP/WjH3zHXTnlXXvOcYIZG8="; hash = "sha256-iNlJLDxb8v7x19q0iaAnGmtmoPjMW8YXzbx5Fcf8Yws=";
}; };
cargoHash = "sha256-ozbGK46uq3qXZifyTY7DDX1+vQuDJuSOJZw35vwcuxY="; cargoHash = "sha256-6XKNBLDNWYd5+O7buHupXzVss2jCdh3wu9mXVLivH44=";
nativeBuildInputs = [ pkg-config cacert ]; nativeBuildInputs = [ pkg-config cacert ];
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.CoreServices darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.SystemConfiguration
]; ];
OPENSSL_NO_VENDOR = 1; OPENSSL_NO_VENDOR = 1;
nativeCheckInputs = [ rustfmt ];
checkFlags = [ checkFlags = [
# requires network access # requires network access
"--skip=server::web::proxy::test::add_proxy" "--skip=server::web::proxy::test::add_proxy"
"--skip=server::web::proxy::test::add_proxy_trailing_slash" "--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 { passthru.tests.version = testers.testVersion {
package = dioxus-cli; package = dioxus-cli;
command = "${meta.mainProgram} --version"; command = "${meta.mainProgram} --version";