1{ lib
2, stdenv
3, rustPlatform
4, fetchFromGitHub
5, CoreServices
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "bacon";
10 version = "2.18.2";
11
12 src = fetchFromGitHub {
13 owner = "Canop";
14 repo = pname;
15 rev = "refs/tags/v${version}";
16 hash = "sha256-hW37pz7iLkBspnQ0ckfVdZUKppXUPrgjHgwmlhsanlI=";
17 };
18
19 cargoHash = "sha256-5o7TtqJh2CRwTrBU2Xbdh7qae5iWVlUfg4ddzxYepmU=";
20
21 buildInputs = lib.optionals stdenv.isDarwin [
22 CoreServices
23 ];
24
25 meta = with lib; {
26 description = "Background rust code checker";
27 mainProgram = "bacon";
28 homepage = "https://github.com/Canop/bacon";
29 changelog = "https://github.com/Canop/bacon/blob/v${version}/CHANGELOG.md";
30 license = licenses.agpl3Only;
31 maintainers = with maintainers; [ FlorianFranzen ];
32 };
33}