Skip to content

Commit

Permalink
Add pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
9999years committed Apr 4, 2024
1 parent 6aadfe2 commit 6b21c56
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions nix/packages/git-gr.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
rust-analyzer,
cargo-release,
installShellFiles,
pkg-config,
openssl,
}: let
inherit (inputs) crane advisory-db;
craneLib = crane.lib.${system};
Expand All @@ -24,13 +26,19 @@
commonArgs' = {
inherit src;

nativeBuildInputs = lib.optionals stdenv.isDarwin [
(libiconv.override {
enableStatic = true;
enableShared = false;
})
darwin.apple_sdk.frameworks.CoreServices
];
nativeBuildInputs =
lib.optionals stdenv.isLinux [
pkg-config
openssl
]
++ lib.optionals stdenv.isDarwin [
(libiconv.override {
enableStatic = true;
enableShared = false;
})
darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.SystemConfiguration
];
};

# Build *just* the cargo dependencies, so we can reuse
Expand Down

0 comments on commit 6b21c56

Please sign in to comment.