2021-05-20 23:08:51 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
|
|
|
|
, openssl, libiconv, CoreServices, Security }:
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "trunk";
|
|
|
|
version = "0.10.0";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "thedodd";
|
|
|
|
repo = "trunk";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "W6d05MKquG1QFkvofqWk94+6j5q8yuAjNgZFG3Z3kNo=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2021-05-20 23:08:51 +00:00
|
|
|
buildInputs = if stdenv.isDarwin
|
|
|
|
then [ libiconv CoreServices Security ]
|
|
|
|
else [ openssl ];
|
2021-03-23 19:22:30 +00:00
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "sha256-0ehz0ETNA2gOvTJUu8uq5H+bv4VXOJMq6AA8kn65m/Q=";
|
2021-03-23 19:22:30 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|