btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / bu / buckle / package.nix
bloba4b96ce469270e4408399829472e695c8a0b7564
2   lib,
3   fetchFromGitHub,
4   rustPlatform,
5 }:
7 rustPlatform.buildRustPackage rec {
8   pname = "buckle";
9   version = "1.1.0";
10   cargoHash = "sha256-O90/Xo9WjLVGFEkh6S6IyvanceRBJHneEret6W8e5Yc=";
12   src = fetchFromGitHub {
13     owner = "benbrittain";
14     repo = "buckle";
15     rev = "v${version}";
16     hash = "sha256-eWhcDzw+6I5N0dse5avwhcQ/y6YZ6b3QKyBwWBrA/xo=";
17   };
19   checkFlags = [
20     # Both tests access the network.
21     "--skip=test_buck2_latest"
22     "--skip=test_buck2_specific_version"
23   ];
25   meta = {
26     description = "Buck2 launcher";
27     longDescription = ''
28       Buckle is a launcher for [Buck2](https://buck2.build). It manages
29       Buck2 on a per-project basis. This enables a project or team to do
30       seamless upgrades of their build system tooling. It is designed to
31       be minimally intrusive. Buckle only manages fetching Buck2 and
32       enforcing the prelude is upgraded in sync.
33     '';
34     homepage = "https://github.com/benbrittain/buckle";
35     license = lib.licenses.mit;
36     maintainers = with lib.maintainers; [ cbarrete ];
37     mainProgram = "buckle";
38   };