Skip to content

Commit ed4655b

Browse files
committed
fix: Ensure that we have pkg-config in the build inputs
1 parent ffb51b9 commit ed4655b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

flake.nix

+10-4
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,18 @@
3434
*.nix
3535
'' ./.;
3636

37-
nativeBuildInputs = [
38-
pkgs.pkg-config
39-
]
37+
nativeBuildInputs = []
4038
++ lib.optionals stdenv.isDarwin [
4139
pkgs.libiconv
4240
pkgs.darwin.apple_sdk.frameworks.Security
4341
pkgs.darwin.apple_sdk.frameworks.SystemConfiguration
4442
];
4543

46-
buildInputs = [ pkgs.openssl pkgs.protobuf ];
44+
buildInputs = [
45+
pkgs.pkg-config
46+
pkgs.openssl
47+
pkgs.protobuf
48+
];
4749

4850
cargoArtifacts = craneLib.buildDepsOnly {
4951
inherit src nativeBuildInputs buildInputs;
@@ -71,6 +73,10 @@
7173
cargoClippyExtraArgs = "--all-targets --no-deps";
7274
};
7375

76+
grey-doc = craneLib.cargoDoc {
77+
inherit cargoArtifacts src;
78+
};
79+
7480
# Check formatting
7581
grey-fmt = craneLib.cargoFmt {
7682
inherit src;

0 commit comments

Comments
 (0)