Skip to content

Commit

Permalink
autocorrect: add missing frameworks on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank committed Jan 7, 2024
1 parent 1f61158 commit 0827a3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkgs/tools/text/autocorrect/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, rustPlatform, fetchFromGitHub, Security }:
{ lib, stdenv, rustPlatform, fetchFromGitHub, Security, SystemConfiguration }:

rustPlatform.buildRustPackage rec {
pname = "autocorrect";
Expand All @@ -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" ];
Expand Down
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 0827a3b

Please sign in to comment.