Skip to content

Commit

Permalink
fix: add SystemConfiguration to buildInputs
Browse files Browse the repository at this point in the history
  • Loading branch information
Erin van der Veen committed Apr 30, 2024
1 parent a7749ff commit ffed690
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
# nixtract uses the reqwest crate to query for narinfo on the substituters.
# reqwest depends on openssl.
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl ];
buildInputs = with pkgs; ([ openssl ] ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration ]);
};
devShell = with pkgs; mkShell {
buildInputs = [
Expand All @@ -33,7 +33,9 @@

pkg-config
openssl
];
] ++
lib.optionsl stdenv.isDarwin [ darwin.apple_sdk.frameworks.SystemConfiguration];

RUST_SRC_PATH = rustPlatform.rustLibSrc;
};
});
Expand Down

0 comments on commit ffed690

Please sign in to comment.