1{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
2, openssl, libiconv, CoreServices, Security }:
3
4rustPlatform.buildRustPackage rec {
5 pname = "trunk";
6 version = "0.17.2";
7
8 src = fetchFromGitHub {
9 owner = "thedodd";
10 repo = "trunk";
11 rev = "v${version}";
12 sha256 = "sha256-A6h8TmYK5WOcmANk/uM9QO1h767BWASWTwLthtKqrEk=";
13 };
14
15 nativeBuildInputs = [ pkg-config ];
16 buildInputs = if stdenv.isDarwin
17 then [ libiconv CoreServices Security ]
18 else [ openssl ];
19
20 # requires network
21 checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
22
23 cargoHash = "sha256-+jz0J1qFK2fZ4OX089pgNtT2vfiOTf39qQjeXmLoFNs=";
24
25 meta = with lib; {
26 homepage = "https://github.com/thedodd/trunk";
27 description = "Build, bundle & ship your Rust WASM application to the web";
28 maintainers = with maintainers; [ freezeboy ];
29 license = with licenses; [ asl20 ];
30 };
31}