Skip to content

Commit

Permalink
fix: Ensure that we have pkg-config in the build inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Apr 23, 2024
1 parent ffb51b9 commit ed4655b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,18 @@
*.nix
'' ./.;

nativeBuildInputs = [
pkgs.pkg-config
]
nativeBuildInputs = []
++ lib.optionals stdenv.isDarwin [
pkgs.libiconv
pkgs.darwin.apple_sdk.frameworks.Security
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
];

buildInputs = [ pkgs.openssl pkgs.protobuf ];
buildInputs = [
pkgs.pkg-config
pkgs.openssl
pkgs.protobuf
];

cargoArtifacts = craneLib.buildDepsOnly {
inherit src nativeBuildInputs buildInputs;
Expand Down Expand Up @@ -71,6 +73,10 @@
cargoClippyExtraArgs = "--all-targets --no-deps";
};

grey-doc = craneLib.cargoDoc {
inherit cargoArtifacts src;
};

# Check formatting
grey-fmt = craneLib.cargoFmt {
inherit src;
Expand Down

0 comments on commit ed4655b

Please sign in to comment.