{ lib , stdenv , rustPlatform , fetchFromGitHub , CoreServices }: rustPlatform.buildRustPackage rec { pname = "bacon"; version = "2.11.0"; src = fetchFromGitHub { owner = "Canop"; repo = pname; rev = "refs/tags/v${version}"; hash = "sha256-FLs4xTWBn4OuwOxeE6vJEqkXnBMa8kFbcMArtk2iaik="; }; cargoHash = "sha256-U6nXh+QDG+Eoe5eRcuOF6pOIaFB5l2v8ZbDGaHdbf08="; 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 ]; }; }