depot/third_party/nixpkgs/pkgs/by-name/tr/trunk-ng/package.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

31 lines
900 B
Nix

{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
, openssl, libiconv, CoreServices, Security }:
rustPlatform.buildRustPackage rec {
pname = "trunk-ng";
version = "0.17.11";
src = fetchFromGitHub {
owner = "ctron";
repo = "trunk";
rev = "v${version}";
hash = "sha256-ZaSWfuz0w9bkilpDv4EAt6gn6ZdKOLTYJlJMQqtZAwY=";
};
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-O3e8v0r76VeMYODah2RYTmwr9WNAX+HPhYVmDuP2gfg=";
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 ];
};
}