Skip to content

Commit

Permalink
vector: add SystemConfiguration for darwin, fixes ld
Browse files Browse the repository at this point in the history
  • Loading branch information
ahirner authored and happysalada committed Dec 13, 2023
1 parent 6b83dc8 commit 4eb501c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions pkgs/tools/misc/vector/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
, libiconv
, coreutils
, CoreServices
, SystemConfiguration
, tzdata
, cmake
, perl
Expand Down Expand Up @@ -62,8 +63,9 @@ rustPlatform.buildRustPackage {
};
};
nativeBuildInputs = [ pkg-config cmake perl git rustPlatform.bindgenHook ];
buildInputs = [ oniguruma openssl protobuf rdkafka zstd rust-jemalloc-sys ]
++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices ];
buildInputs =
[ oniguruma openssl protobuf rdkafka zstd rust-jemalloc-sys ]
++ lib.optionals stdenv.isDarwin [ Security libiconv coreutils CoreServices SystemConfiguration ];

# needed for internal protobuf c wrapper library
PROTOC = "${protobuf}/bin/protoc";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40429,7 +40429,7 @@ with pkgs;
};

vector = callPackage ../tools/misc/vector {
inherit (darwin.apple_sdk.frameworks) Security CoreServices;
inherit (darwin.apple_sdk.frameworks) Security CoreServices SystemConfiguration;
};

hjson = with python3Packages; toPythonApplication hjson;
Expand Down

0 comments on commit 4eb501c

Please sign in to comment.