9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
31 lines
906 B
Nix
31 lines
906 B
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
|
|
, openssl, libiconv, CoreServices, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "trunk";
|
|
version = "0.17.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "thedodd";
|
|
repo = "trunk";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-z6/CogY7X3u4BvvP8gRjBeKw0Cci9d6TKZYrKLwoTqs=";
|
|
};
|
|
|
|
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-7j4SNBMNtu4vFkZic4I6Wjlt+oHQ1o8gOxweIq8t7ro=";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/thedodd/trunk";
|
|
description = "Build, bundle & ship your Rust WASM application to the web";
|
|
maintainers = with maintainers; [ freezeboy ];
|
|
license = with licenses; [ asl20 ];
|
|
};
|
|
}
|