2023-01-11 07:51:40 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, CoreServices
|
|
|
|
}:
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "bacon";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "2.18.2";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Canop";
|
|
|
|
repo = pname;
|
2023-01-11 07:51:40 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-hW37pz7iLkBspnQ0ckfVdZUKppXUPrgjHgwmlhsanlI=";
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
cargoHash = "sha256-5o7TtqJh2CRwTrBU2Xbdh7qae5iWVlUfg4ddzxYepmU=";
|
2021-05-20 23:08:51 +00:00
|
|
|
|
2023-03-15 16:39:30 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2023-01-11 07:51:40 +00:00
|
|
|
CoreServices
|
|
|
|
];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Background rust code checker";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "bacon";
|
2021-05-20 23:08:51 +00:00
|
|
|
homepage = "https://github.com/Canop/bacon";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/Canop/bacon/blob/v${version}/CHANGELOG.md";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.agpl3Only;
|
2023-01-11 07:51:40 +00:00
|
|
|
maintainers = with maintainers; [ FlorianFranzen ];
|
2021-05-20 23:08:51 +00:00
|
|
|
};
|
|
|
|
}
|