Unverified Commit 1dd93675 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

bacon: 2.21.0 -> 3.0.0 (#347463)

parents 2739f1f4 cda08db3
Loading
Loading
Loading
Loading
+46 −0
Original line number Diff line number Diff line
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, CoreServices
{
  lib,
  stdenv,
  rustPlatform,
  fetchFromGitHub,
  darwin,
  versionCheckHook,
  nix-update-script,
}:

rustPlatform.buildRustPackage rec {
  pname = "bacon";
  version = "2.21.0";
  version = "3.0.0";

  src = fetchFromGitHub {
    owner = "Canop";
    repo = pname;
    repo = "bacon";
    rev = "refs/tags/v${version}";
    hash = "sha256-WIjTFP5koNQeHiTcVxQ18eZEdHzmpBFinvfNtirG+pg=";
    hash = "sha256-fSlakjZbY8jrFkCqVxPr3UKwf1Oq4yPhLmVbzsksSeg=";
  };

  cargoHash = "sha256-YaVnfwf0jyZTe6B35z9Zm9247kGU/G6nu23sHg9lnAk=";
  cargoHash = "sha256-WT0uXmchhapss3AU4+e2wA3nBVjzikfRNRyAvQnpJfY=";

  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
    CoreServices
    darwin.apple_sdk.frameworks.CoreServices
  ];

  meta = with lib; {
  nativeInstallCheckInputs = [
    versionCheckHook
  ];
  versionCheckProgramArg = [ "--version" ];
  doInstallCheck = true;

  passthru = {
    updateScript = nix-update-script { };
  };

  meta = {
    description = "Background rust code checker";
    mainProgram = "bacon";
    homepage = "https://github.com/Canop/bacon";
    changelog = "https://github.com/Canop/bacon/blob/v${version}/CHANGELOG.md";
    license = licenses.agpl3Only;
    maintainers = with maintainers; [ FlorianFranzen ];
    license = lib.licenses.agpl3Only;
    maintainers = with lib.maintainers; [ FlorianFranzen ];
  };
}
+0 −4
Original line number Diff line number Diff line
@@ -6081,10 +6081,6 @@ with pkgs;
    inherit (darwin.apple_sdk.frameworks) CoreFoundation IOKit Kerberos;
  };
  bacon = callPackage ../development/tools/bacon {
    inherit (darwin.apple_sdk.frameworks) CoreServices;
  };
  bats = callPackage ../development/interpreters/bats { };
  bbe = callPackage ../tools/misc/bbe { };