7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
38 lines
953 B
Nix
38 lines
953 B
Nix
{ lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
CoreServices,
|
|
SystemConfiguration
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "trunk";
|
|
version = "0.20.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "trunk-rs";
|
|
repo = "trunk";
|
|
rev = "v${version}";
|
|
hash = "sha256-3p3HllZu69e2ERLoEJwSWL0OXl23lxvIPHV9HK30CqM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
buildInputs = if stdenv.hostPlatform.isDarwin
|
|
then [ CoreServices SystemConfiguration ]
|
|
else [ openssl ];
|
|
# requires network
|
|
checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
|
|
|
|
cargoHash = "sha256-4b+ASz8uV17Y7gO50YKiu8Zhhq4sL+HJj1WAD7VkEE4=";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/trunk-rs/trunk";
|
|
description = "Build, bundle & ship your Rust WASM application to the web";
|
|
mainProgram = "trunk";
|
|
maintainers = with maintainers; [ freezeboy ctron ];
|
|
license = with licenses; [ asl20 ];
|
|
};
|
|
}
|