summary refs log tree commit diff
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2022-02-28 02:16:36 -0500
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2022-02-28 02:16:36 -0500
commita5396c031be3a862e53e65b253108eba8c17e8a6 (patch)
tree0a951dd2f88618d670d557c2e9df19f8d366f454
parent9783ef308da620a48a9849d977dd1dfdf7f9ba45 (diff)
downloadnixpkgs-a5396c031be3a862e53e65b253108eba8c17e8a6.tar
nixpkgs-a5396c031be3a862e53e65b253108eba8c17e8a6.tar.gz
nixpkgs-a5396c031be3a862e53e65b253108eba8c17e8a6.tar.bz2
nixpkgs-a5396c031be3a862e53e65b253108eba8c17e8a6.tar.lz
nixpkgs-a5396c031be3a862e53e65b253108eba8c17e8a6.tar.xz
nixpkgs-a5396c031be3a862e53e65b253108eba8c17e8a6.tar.zst
nixpkgs-a5396c031be3a862e53e65b253108eba8c17e8a6.zip
rebazel: fix darwin build
-rw-r--r--pkgs/development/tools/rebazel/default.nix5
-rw-r--r--pkgs/top-level/all-packages.nix4
2 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/development/tools/rebazel/default.nix b/pkgs/development/tools/rebazel/default.nix
index 5dee0a1b9e8..c28701f96a2 100644
--- a/pkgs/development/tools/rebazel/default.nix
+++ b/pkgs/development/tools/rebazel/default.nix
@@ -1,4 +1,5 @@
-{ lib, rustPlatform, fetchFromGitHub }:
+{ lib, stdenv, rustPlatform, fetchFromGitHub, CoreServices }:
+
 rustPlatform.buildRustPackage rec {
   pname = "rebazel";
   version = "0.1.4";
@@ -12,6 +13,8 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "sha256-cBAm8LyNKEVJkhZJ+QZU5XtQutb1oNvad8xH70Bi2LM=";
 
+  buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ];
+
   meta = with lib; {
     description = "tool for expediting bazel build workflows";
     homepage = "https://github.com/meetup/rebazel";
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index a29312d19b3..2ccd6c599e2 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -14416,7 +14416,9 @@ with pkgs;
 
   bazelisk = callPackage ../development/tools/bazelisk { };
 
-  rebazel = callPackage ../development/tools/rebazel { };
+  rebazel = callPackage ../development/tools/rebazel {
+    inherit (darwin.apple_sdk.frameworks) CoreServices;
+  };
 
   buildBazelPackage = callPackage ../build-support/build-bazel-package { };