{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, }: rustPlatform.buildRustPackage rec { pname = "trunk"; version = "0.21.14"; src = fetchFromGitHub { owner = "trunk-rs"; repo = "trunk"; rev = "v${version}"; hash = "sha256-0T8ZkBA1Zf4z2HXYeBwJ+2EGoUpxGrqSb4fS4CnL28A="; }; nativeBuildInputs = [ pkg-config ]; buildInputs = [ openssl ]; # requires network checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ]; cargoHash = "sha256-/5zvbSlMzZHxnAwuu0Jd6WVVjxJtIAQpRwZZHgYyPbs="; meta = with lib; { homepage = "https://github.com/trunk-rs/trunk"; description = "Build, bundle & ship your Rust WASM application to the web"; mainProgram = "trunk"; maintainers = with maintainers; [ freezeboy ctron ]; license = with licenses; [ asl20 ]; }; }