build-bazel-package: added rm of extra local folders for toolchain configuration...
[NixPkgs.git] / pkgs / by-name / di / dioxus-cli / package.nix
blob3d90245ae7f00cf02d64a4e655c8a343e42a87b8
2   lib,
3   stdenv,
4   fetchCrate,
5   rustPlatform,
6   pkg-config,
7   rustfmt,
8   cacert,
9   openssl,
10   nix-update-script,
11   testers,
12   dioxus-cli,
15 rustPlatform.buildRustPackage rec {
16   pname = "dioxus-cli";
17   version = "0.6.0";
19   src = fetchCrate {
20     inherit pname version;
21     hash = "sha256-0Kg2/+S8EuMYZQaK4Ao+mbS7K48VhVWjPL+LnoVJMSw=";
22   };
24   cargoHash = "sha256-RMo6q/GSAV1bCMWtR+wu9xGKCgz/Ie6t/8oirBly/LQ=";
25   buildFeatures = [ "optimizations" ];
27   nativeBuildInputs = [
28     pkg-config
29     cacert
30   ];
32   buildInputs = [ openssl ];
34   OPENSSL_NO_VENDOR = 1;
36   nativeCheckInputs = [ rustfmt ];
38   checkFlags = [
39     # requires network access
40     "--skip=serve::proxy::test"
41   ];
43   passthru = {
44     updateScript = nix-update-script { };
45     tests.version = testers.testVersion { package = dioxus-cli; };
46   };
48   meta = with lib; {
49     homepage = "https://dioxuslabs.com";
50     description = "CLI tool for developing, testing, and publishing Dioxus apps";
51     changelog = "https://github.com/DioxusLabs/dioxus/releases";
52     license = with licenses; [
53       mit
54       asl20
55     ];
56     maintainers = with maintainers; [
57       xanderio
58       cathalmullan
59     ];
60     mainProgram = "dx";
61   };