nixpkgs/pkgs/development/tools/bacon/default.nix

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

34 lines
782 B
Nix
Raw Normal View History

2023-01-07 22:05:46 +00:00
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, CoreServices
}:
2021-04-30 13:16:12 +00:00
rustPlatform.buildRustPackage rec {
pname = "bacon";
2024-03-30 22:30:38 +00:00
version = "2.16.0";
2021-04-30 13:16:12 +00:00
src = fetchFromGitHub {
owner = "Canop";
repo = pname;
2023-01-07 22:05:46 +00:00
rev = "refs/tags/v${version}";
2024-03-30 22:30:38 +00:00
hash = "sha256-lYj6WIb8HvOO/RlxeTzD3r7Jjfx4mDqZ9VKo0chvooU=";
2021-04-30 13:16:12 +00:00
};
2024-03-30 22:30:38 +00:00
cargoHash = "sha256-G3IfxIhQ1t47ZhndTBmcUZNXHYehaaMVgIjBuD71zHE=";
2021-04-30 13:16:12 +00:00
buildInputs = lib.optionals stdenv.isDarwin [
2023-01-07 22:05:46 +00:00
CoreServices
];
2021-05-19 19:13:44 +00:00
2021-04-30 13:16:12 +00:00
meta = with lib; {
description = "Background rust code checker";
mainProgram = "bacon";
2021-04-30 13:16:12 +00:00
homepage = "https://github.com/Canop/bacon";
2023-01-07 22:05:46 +00:00
changelog = "https://github.com/Canop/bacon/blob/v${version}/CHANGELOG.md";
2021-04-30 13:16:12 +00:00
license = licenses.agpl3Only;
2023-01-07 22:05:46 +00:00
maintainers = with maintainers; [ FlorianFranzen ];
2021-04-30 13:16:12 +00:00
};
}