depot/third_party/nixpkgs/pkgs/by-name/tr/trunk-ng/package.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

31 lines
899 B
Nix

{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
, openssl, libiconv, CoreServices, Security }:
rustPlatform.buildRustPackage rec {
pname = "trunk-ng";
version = "0.17.8";
src = fetchFromGitHub {
owner = "ctron";
repo = "trunk";
rev = "v${version}";
hash = "sha256-ycZIqDBZccPapOK0ZI9Cvq94tRxChrsWX1rhyWh0S2c=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = if stdenv.isDarwin
then [ libiconv CoreServices Security ]
else [ openssl ];
# requires network
checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
cargoHash = "sha256-URHArTog34JcuxXHzTQBjQOFMffarNb51d9sUOfjm6c=";
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 ];
};
}