2023-10-02 17:00:00 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
|
|
|
|
, openssl, libiconv, CoreServices, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "trunk-ng";
|
2023-11-15 04:05:21 +00:00
|
|
|
version = "0.17.11";
|
2023-10-02 17:00:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ctron";
|
|
|
|
repo = "trunk";
|
|
|
|
rev = "v${version}";
|
2023-11-15 04:05:21 +00:00
|
|
|
hash = "sha256-ZaSWfuz0w9bkilpDv4EAt6gn6ZdKOLTYJlJMQqtZAwY=";
|
2023-10-02 17:00:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = if stdenv.isDarwin
|
|
|
|
then [ libiconv CoreServices Security ]
|
|
|
|
else [ openssl ];
|
|
|
|
|
|
|
|
# requires network
|
|
|
|
checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
|
|
|
|
|
2023-11-15 04:05:21 +00:00
|
|
|
cargoHash = "sha256-O3e8v0r76VeMYODah2RYTmwr9WNAX+HPhYVmDuP2gfg=";
|
2023-10-02 17:00:00 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/ctron/trunk";
|
|
|
|
description = "Build, bundle & ship your Rust WASM application to the web";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "trunk-ng";
|
2023-10-02 17:00:00 +00:00
|
|
|
maintainers = with maintainers; [ ctron ];
|
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
};
|
|
|
|
}
|