nixpkgs-suyu/pkgs/development/tools/trunk/default.nix

32 lines
908 B
Nix
Raw Normal View History

2021-05-18 19:27:34 +02:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
, openssl, libiconv, CoreServices, Security }:
2021-03-18 16:03:26 +01:00
rustPlatform.buildRustPackage rec {
pname = "trunk";
2021-10-01 16:44:59 +02:00
version = "0.14.0";
2021-03-18 16:03:26 +01:00
src = fetchFromGitHub {
owner = "thedodd";
repo = "trunk";
rev = "v${version}";
2021-10-01 16:44:59 +02:00
sha256 = "sha256-69MQDIF79pSuaOgZEIqb/ESPQzL7MUiQaJaxPccGxo8=";
2021-03-18 16:03:26 +01:00
};
nativeBuildInputs = [ pkg-config ];
2021-05-18 19:27:34 +02:00
buildInputs = if stdenv.isDarwin
then [ libiconv CoreServices Security ]
else [ openssl ];
2021-03-18 16:03:26 +01:00
2021-09-14 17:20:18 +02:00
# requires network
checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
2021-10-01 16:44:59 +02:00
cargoSha256 = "sha256-3WTxCMNpBmiNbZMHp5BrqTXa1vmE/ZZ/8XbdcfxBfYg=";
2021-03-18 16:03:26 +01: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 ];
};
}