Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 54 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455{ lib, stdenv, fetchCrate, rustPlatform, pkg-config, rustfmt, cacert, openssl, darwin, testers, dioxus-cli}:
rustPlatform.buildRustPackage rec { pname = "dioxus-cli"; version = "0.5.4";
src = fetchCrate { inherit pname version; hash = "sha256-rfftCJW3MRDg7a2WUDXZWGx1lYmOkqVRcJTEGMObars="; };
cargoHash = "sha256-cpgjs8ZxpJrnA5UtoVoP97VFfmQ7CS1H74D19x0bzAA=";
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" ];
passthru.tests.version = testers.testVersion { package = dioxus-cli; command = "${meta.mainProgram} --version"; inherit version; };
meta = with lib; { homepage = "https://dioxuslabs.com"; description = "CLI tool for developing, testing, and publishing Dioxus apps"; license = with licenses; [ mit asl20 ]; maintainers = with maintainers; [ xanderio cathalmullan ]; mainProgram = "dx"; };}