autocorrect: add missing frameworks on darwin

This commit is contained in:
Weijia Wang
2024-01-07 17:29:29 +01:00
parent 1f61158764
commit 0827a3b2e9
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
{ lib, stdenv, rustPlatform, fetchFromGitHub, Security }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, Security, SystemConfiguration }:
rustPlatform.buildRustPackage rec {
pname = "autocorrect";
@@ -19,7 +19,7 @@ rustPlatform.buildRustPackage rec {
cp ${./Cargo.lock} Cargo.lock
'';
buildInputs = lib.optional stdenv.isDarwin Security;
buildInputs = lib.optionals stdenv.isDarwin [ Security SystemConfiguration ];
cargoBuildFlags = [ "-p" "autocorrect-cli" ];
cargoTestFlags = [ "-p" "autocorrect-cli" ];
+1 -1
View File
@@ -15543,7 +15543,7 @@ with pkgs;
asciigraph = callPackage ../tools/text/asciigraph { };
autocorrect = callPackage ../tools/text/autocorrect {
inherit (darwin.apple_sdk.frameworks) Security;
inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
};
as31 = callPackage ../development/compilers/as31 { };