Skip to content

Commit

Permalink
bacon: fix darwin build
Browse files Browse the repository at this point in the history
  • Loading branch information
stephank authored and Jonathan Ringer committed May 19, 2021
1 parent 090f093 commit b40b662
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion pkgs/development/tools/bacon/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, rustPlatform, fetchFromGitHub }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, CoreServices }:

rustPlatform.buildRustPackage rec {
pname = "bacon";
Expand All @@ -13,6 +13,8 @@ rustPlatform.buildRustPackage rec {

cargoSha256 = "1pii5ajl3xgylrm20pkwbd1lk7gv0pshl1cxjfna0l63q56v7f21";

buildInputs = lib.optional stdenv.isDarwin CoreServices;

meta = with lib; {
description = "Background rust code checker";
homepage = "https://github.com/Canop/bacon";
Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3238,7 +3238,9 @@ in
inherit (darwin.apple_sdk.frameworks) CoreFoundation IOKit;
};

bacon = callPackage ../development/tools/bacon { };
bacon = callPackage ../development/tools/bacon {
inherit (darwin.apple_sdk.frameworks) CoreServices;
};

bareos = callPackage ../tools/backup/bareos { };

Expand Down

0 comments on commit b40b662

Please sign in to comment.