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
906 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";
2023-07-19 00:33:18 +00:00
version = "0.17.2";
2021-03-18 15:03:26 +00:00
src = fetchFromGitHub {
owner = "thedodd";
repo = "trunk";
rev = "v${version}";
2023-07-19 00:33:18 +00:00
sha256 = "sha256-A6h8TmYK5WOcmANk/uM9QO1h767BWASWTwLthtKqrEk=";
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" ];
2023-07-19 00:33:18 +00:00
cargoHash = "sha256-+jz0J1qFK2fZ4OX089pgNtT2vfiOTf39qQjeXmLoFNs=";
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 ];
};
}