depot/third_party/nixpkgs/pkgs/development/tools/bacon/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

33 lines
795 B
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, CoreServices
}:
rustPlatform.buildRustPackage rec {
pname = "bacon";
version = "2.21.0";
src = fetchFromGitHub {
owner = "Canop";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-WIjTFP5koNQeHiTcVxQ18eZEdHzmpBFinvfNtirG+pg=";
};
cargoHash = "sha256-YaVnfwf0jyZTe6B35z9Zm9247kGU/G6nu23sHg9lnAk=";
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
CoreServices
];
meta = with lib; {
description = "Background rust code checker";
mainProgram = "bacon";
homepage = "https://github.com/Canop/bacon";
changelog = "https://github.com/Canop/bacon/blob/v${version}/CHANGELOG.md";
license = licenses.agpl3Only;
maintainers = with maintainers; [ FlorianFranzen ];
};
}