Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 50 lines 1.2 kB view raw
1{ lib 2, stdenv 3, fetchCrate 4, rustPlatform 5, pkg-config 6, cacert 7, openssl 8, darwin 9, testers 10, dioxus-cli 11}: 12 13rustPlatform.buildRustPackage rec { 14 pname = "dioxus-cli"; 15 version = "0.4.1"; 16 17 src = fetchCrate { 18 inherit pname version; 19 hash = "sha256-h2l6SHty06nLNbdlnSzH7I4XY53yyxNbx663cHYmPG0="; 20 }; 21 22 cargoHash = "sha256-3pFkEC1GAJmTqXAymX4WRIq7EEtY17u1TCg+OhqL3bA="; 23 24 nativeBuildInputs = [ pkg-config cacert ]; 25 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ 26 darwin.apple_sdk.frameworks.CoreServices 27 ]; 28 29 OPENSSL_NO_VENDOR = 1; 30 31 checkFlags = [ 32 # requires network access 33 "--skip=server::web::proxy::test::add_proxy" 34 "--skip=server::web::proxy::test::add_proxy_trailing_slash" 35 ]; 36 37 passthru.tests.version = testers.testVersion { 38 package = dioxus-cli; 39 command = "${meta.mainProgram} --version"; 40 inherit version; 41 }; 42 43 meta = with lib; { 44 homepage = "https://dioxuslabs.com"; 45 description = "CLI tool for developing, testing, and publishing Dioxus apps"; 46 license = with licenses; [ mit asl20 ]; 47 maintainers = with maintainers; [ xanderio cathalmullan ]; 48 mainProgram = "dx"; 49 }; 50}