1 { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
2 , openssl, libiconv, CoreServices, Security, SystemConfiguration }:
4 rustPlatform.buildRustPackage rec {
8 src = fetchFromGitHub {
12 hash = "sha256-SnE0z9Wa4gtX/ts0vG9pYnnxumILHTSV9/tVYkCHFck=";
15 nativeBuildInputs = [ pkg-config ];
16 buildInputs = if stdenv.hostPlatform.isDarwin
17 then [ libiconv CoreServices Security SystemConfiguration ]
21 checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
24 darwin = "sha256-TwpGw3LH3TmZSbC4DkoOYpQdOpksXXoAoiacyZAefTU=";
25 linux = "sha256-AivISmT/r8xa/vSXUN8sU7z67t1hcyMQM+t6oXmIOhU=";
26 }.${stdenv.hostPlatform.parsed.kernel.name} or (throw "Unsupported system: ${stdenv.hostPlatform.system}");
29 homepage = "https://github.com/ctron/trunk";
30 description = "Build, bundle & ship your Rust WASM application to the web";
31 mainProgram = "trunk-ng";
32 maintainers = with maintainers; [ ctron ];
33 license = with licenses; [ asl20 ];