Merge pull request #271709 from alven-shin/fix-pest-ide-tools

pest-ide-tools: fix package not building on Darwin
This commit is contained in:
Weijia Wang 2023-12-12 01:53:47 +01:00 committed by GitHub
commit 5263c5b57e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,11 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, nix-update-script
, pkg-config
, openssl
, darwin
}:
rustPlatform.buildRustPackage rec {
@ -18,7 +20,11 @@ rustPlatform.buildRustPackage rec {
sha256 = "sha256-SymtMdj7QVOEiSeTjmVidejFeGK8swnM6nfT7u18URs=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
buildInputs = [
openssl
] ++ lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
passthru = {
updateScript = nix-update-script { };