Files
nixpkgs/pkgs/by-name/tr/trunk/package.nix
2026-07-15 14:04:39 -04:00

35 lines
834 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "trunk";
version = "0.21.14";
src = fetchFromGitHub {
owner = "trunk-rs";
repo = "trunk";
rev = "v${finalAttrs.version}";
hash = "sha256-0T8ZkBA1Zf4z2HXYeBwJ+2EGoUpxGrqSb4fS4CnL28A=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
# requires network
checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
cargoHash = "sha256-/5zvbSlMzZHxnAwuu0Jd6WVVjxJtIAQpRwZZHgYyPbs=";
meta = {
homepage = "https://github.com/trunk-rs/trunk";
description = "Build, bundle & ship your Rust WASM application to the web";
mainProgram = "trunk";
maintainers = with lib.maintainers; [ ctron ];
license = lib.licenses.asl20;
};
})