Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / trunk / default.nix
blob2c003913b3bd8e4ae4061f4e73c8326815493325
1 { lib, stdenv, rustPlatform, fetchFromGitHub, pkg-config
2 , openssl, libiconv, CoreServices, Security }:
4 rustPlatform.buildRustPackage rec {
5   pname = "trunk";
6   version = "0.17.2";
8   src = fetchFromGitHub {
9     owner = "thedodd";
10     repo = "trunk";
11     rev = "v${version}";
12     sha256 = "sha256-A6h8TmYK5WOcmANk/uM9QO1h767BWASWTwLthtKqrEk=";
13   };
15   nativeBuildInputs = [ pkg-config ];
16   buildInputs = if stdenv.isDarwin
17     then [ libiconv CoreServices Security ]
18     else [ openssl ];
20   # requires network
21   checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
23   cargoHash = "sha256-+jz0J1qFK2fZ4OX089pgNtT2vfiOTf39qQjeXmLoFNs=";
25   meta = with lib; {
26     homepage = "https://github.com/thedodd/trunk";
27     description = "Build, bundle & ship your Rust WASM application to the web";
28     maintainers = with maintainers; [ freezeboy ];
29     license = with licenses; [ asl20 ];
30   };