From 5fd7abad640815d43217c6e409879e2fa3208856 Mon Sep 17 00:00:00 2001 From: ahirner Date: Sun, 17 Sep 2023 08:12:52 +0200 Subject: [PATCH] dioxus-cli: 0.4.0 -> 0.4.1 * update src * use testers.testVersion --- .../tools/rust/dioxus-cli/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/rust/dioxus-cli/default.nix b/pkgs/development/tools/rust/dioxus-cli/default.nix index fbe1a6a3b730..c4ea4ff20c07 100644 --- a/pkgs/development/tools/rust/dioxus-cli/default.nix +++ b/pkgs/development/tools/rust/dioxus-cli/default.nix @@ -6,18 +6,20 @@ , cacert , openssl , darwin +, testers +, dioxus-cli }: rustPlatform.buildRustPackage rec { pname = "dioxus-cli"; - version = "0.4.0"; + version = "0.4.1"; src = fetchCrate { inherit pname version; - hash = "sha256-4BIuD/rrA398hPEoNt5PwWylPAR0fA1UKc90xyH5Fd0="; + hash = "sha256-h2l6SHty06nLNbdlnSzH7I4XY53yyxNbx663cHYmPG0="; }; - cargoHash = "sha256-ok+fjvwz4k0/M5j7wut2A2AK6tuO3UfZtgoCXaCaHXY="; + cargoHash = "sha256-3pFkEC1GAJmTqXAymX4WRIq7EEtY17u1TCg+OhqL3bA="; nativeBuildInputs = [ pkg-config cacert ]; buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ @@ -32,10 +34,11 @@ rustPlatform.buildRustPackage rec { "--skip=server::web::proxy::test::add_proxy_trailing_slash" ]; - doInstallCheck = true; - installCheckPhase = '' - $out/bin/dx --version | grep "dioxus ${version}" - ''; + passthru.tests.version = testers.testVersion { + package = dioxus-cli; + command = "${meta.mainProgram} --version"; + inherit version; + }; meta = with lib; { homepage = "https://dioxuslabs.com";