Skip to content

Commit

Permalink
Merge pull request cargo2nix#299 from cbopt/sqlx-macros
Browse files Browse the repository at this point in the history
use sqlx-macros overries for osx: SystemConfiguration
  • Loading branch information
psionic-k authored Apr 30, 2023
2 parents c149357 + 19c7c65 commit 0167b39
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions overlay/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ in rec {
rand
rand_os
rdkafka-sys
sqlx-macros
reqwest
ring
zmq-sys
Expand Down Expand Up @@ -265,6 +266,15 @@ in rec {
}
else nullOverride;

sqlx-macros = if pkgs.stdenv.hostPlatform.isDarwin
then makeOverride {
name = "sqlx-macros";
overrideAttrs = drv: {
propagatedBuildInputs = drv.propagatedBuildInputs or [ ] ++ [ pkgs.darwin.apple_sdk.frameworks.SystemConfiguration ];
};
}
else nullOverride;

rdkafka-sys = makeOverride {
name = "rdkafka-sys";
overrideAttrs = drv: {
Expand Down

0 comments on commit 0167b39

Please sign in to comment.