Skip to content

Commit

Permalink
fix: libgit2 build issue on darwin systems
Browse files Browse the repository at this point in the history
  • Loading branch information
mrnossiom committed Aug 2, 2024
1 parent 36640cb commit 276ccad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,10 @@
];
buildInputs = with pkgs; [
openssl
];
] ++ optionals pkgs.stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];

RUST_SRC_PATH = pkgs.rustPlatform.rustLibSrc;
LD_LIBRARY_PATH = makeLibraryPath buildInputs;

RUST_LOG = "";
};
});
};
Expand Down
5 changes: 4 additions & 1 deletion package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
, gitignore

, pkg-config
, darwin
, openssl
, stdenv
}:

let
Expand All @@ -21,7 +23,8 @@ rustPlatform.buildRustPackage {
cargoLock = { lockFile = "${src}/Cargo.lock"; };

nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildInputs = [ openssl ]
++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];

meta = {
inherit (cargoTOML.package) description homepage license;
Expand Down

0 comments on commit 276ccad

Please sign in to comment.