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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
908 B
Nix
Raw Normal View History

2021-05-18 17:27:34 +00:00
{ lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
, openssl, libiconv, CoreServices, Security }:
2021-03-18 15:03:26 +00:00
rustPlatform.buildRustPackage rec {
pname = "trunk";
2022-05-03 03:29:44 +00:00
version = "0.15.0";
2021-03-18 15:03:26 +00:00
src = fetchFromGitHub {
owner = "thedodd";
repo = "trunk";
rev = "v${version}";
2022-05-03 03:29:44 +00:00
sha256 = "sha256-VHUs/trR1M5WacEA0gwKLkGtsws9GFmn1vK0kRxpNII=";
2021-03-18 15:03:26 +00:00
};
nativeBuildInputs = [ pkg-config ];
2021-05-18 17:27:34 +00:00
buildInputs = if stdenv.isDarwin
then [ libiconv CoreServices Security ]
else [ openssl ];
2021-03-18 15:03:26 +00:00
2021-09-14 15:20:18 +00:00
# requires network
checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
2022-05-03 03:29:44 +00:00
cargoSha256 = "sha256-czXe9W+oR1UV7zGZiiHcbydzH6sowa/8upm+5lkPG1U=";
2021-03-18 15:03:26 +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 ];
};
}