btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / tr / trunk / package.nix
blobe82b79a07bf3b5e8cfdee50814e96803836cfe2b
1 { lib,
2 rustPlatform,
3 fetchFromGitHub,
4 pkg-config,
5 openssl,
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "trunk";
10   version = "0.21.1";
12   src = fetchFromGitHub {
13     owner = "trunk-rs";
14     repo = "trunk";
15     rev = "v${version}";
16     hash = "sha256-6EuSz7bFlL49l5gjoKCyRTfAWiwIHFdG0t+StvGj7f8=";
17   };
19   nativeBuildInputs = [ pkg-config ];
20   buildInputs = [ openssl ];
21   # requires network
22   checkFlags = [ "--skip=tools::tests::download_and_install_binaries" ];
24   cargoHash = "sha256-NfGDra5xHVY04CofTriCUspLY3f4Tiq6Wm9ON0K8jwY=";
26   meta = with lib; {
27     homepage = "https://github.com/trunk-rs/trunk";
28     description = "Build, bundle & ship your Rust WASM application to the web";
29     mainProgram = "trunk";
30     maintainers = with maintainers; [ freezeboy ctron ];
31     license = with licenses; [ asl20 ];
32   };