2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
|
|
|
|
, openssl, libiconv, CoreServices, Security }:
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "trunk";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.16.0";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thedodd";
|
|
|
|
repo = "trunk";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-6o+frbLtuw+DwJiWv4x11qX4GUffhxF19pi/7FLYmHA=";
|
2021-03-23 19:22:30 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = if stdenv.isDarwin
|
|
|
|
then [ libiconv CoreServices Security ]
|
|
|
|
else [ openssl ];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
# requires network
|
|
|
|
checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
cargoSha256 = "sha256-j/i2io1JfcNA7eeAXAAKMBtHORZm4J5dOFFNnzvx2cg=";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/thedodd/trunk";
|
|
|
|
description = "Build, bundle & ship your Rust WASM application to the web";
|
|
|
|
maintainers = with maintainers; [ freezeboy ];
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
};
|
|
|
|
}
|