nixpkgs/pkgs/by-name/bu/buckle/package.nix

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

47 lines
1.2 KiB
Nix
Raw Normal View History

2024-05-13 16:12:19 +00:00
{
lib,
2024-05-13 16:13:06 +00:00
stdenv,
2024-05-13 16:12:19 +00:00
fetchFromGitHub,
rustPlatform,
2024-05-13 16:13:06 +00:00
darwin,
2024-05-13 16:12:19 +00:00
}:
2024-04-06 03:15:53 +00:00
rustPlatform.buildRustPackage rec {
pname = "buckle";
version = "1.1.0";
cargoHash = "sha256-O90/Xo9WjLVGFEkh6S6IyvanceRBJHneEret6W8e5Yc=";
src = fetchFromGitHub {
owner = "benbrittain";
repo = "buckle";
rev = "v${version}";
sha256 = "sha256-eWhcDzw+6I5N0dse5avwhcQ/y6YZ6b3QKyBwWBrA/xo=";
};
2024-05-13 16:13:06 +00:00
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
darwin.apple_sdk.frameworks.SystemConfiguration
];
2024-04-06 03:15:53 +00:00
checkFlags = [
# Both tests access the network.
"--skip=test_buck2_latest"
"--skip=test_buck2_specific_version"
];
meta = with lib; {
description = "Buck2 launcher";
longDescription = ''
Buckle is a launcher for [Buck2](https://buck2.build). It manages
Buck2 on a per-project basis. This enables a project or team to do
seamless upgrades of their build system tooling. It is designed to
be minimally intrusive. Buckle only manages fetching Buck2 and
enforcing the prelude is upgraded in sync.
'';
homepage = "https://github.com/benbrittain/buckle";
license = licenses.mit;
maintainers = with maintainers; [ cbarrete ];
mainProgram = "buckle";
};
}