1{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
2, openssl, libiconv, CoreServices, Security }:
3
4rustPlatform.buildRustPackage rec {
5 pname = "trunk";
6 version = "0.16.0";
7
8 src = fetchFromGitHub {
9 owner = "thedodd";
10 repo = "trunk";
11 rev = "v${version}";
12 sha256 = "sha256-6o+frbLtuw+DwJiWv4x11qX4GUffhxF19pi/7FLYmHA=";
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 cargoSha256 = "sha256-j/i2io1JfcNA7eeAXAAKMBtHORZm4J5dOFFNnzvx2cg=";
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}