2023-10-19 13:55:26 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
|
|
|
|
, openssl, libiconv, CoreServices, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "trunk-ng";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.17.10";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ctron";
|
|
|
|
repo = "trunk";
|
|
|
|
rev = "v${version}";
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-F2g/GMxnS5r44i3NIJGOic9f+H5+JbFi3dqMqI6h6JQ=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = if stdenv.isDarwin
|
|
|
|
then [ libiconv CoreServices Security ]
|
|
|
|
else [ openssl ];
|
|
|
|
|
|
|
|
# requires network
|
|
|
|
checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
cargoHash = "sha256-37nCqRTgbsg2cXu4xwYC/qfodPIxx97Qns8FQe9NroQ=";
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/ctron/trunk";
|
|
|
|
description = "Build, bundle & ship your Rust WASM application to the web";
|
|
|
|
maintainers = with maintainers; [ ctron ];
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
};
|
|
|
|
}
|