nixpkgs/pkgs/development/tools/bacon/default.nix
2024-02-11 09:24:58 +00:00

32 lines
755 B
Nix

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