Commit 16920f9f authored by happysalada's avatar happysalada Committed by Yt
Browse files

nushellPlugins.regex: fix darwin build

parent 1b3b4528
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -4,6 +4,6 @@ lib.makeScope newScope (self: with self; {
  gstat = callPackage ./gstat.nix { inherit Security; };
  formats = callPackage ./formats.nix { inherit IOKit Foundation; };
  query = callPackage ./query.nix { inherit IOKit CoreFoundation; };
  regex = callPackage ./regex.nix { };
  regex = callPackage ./regex.nix { inherit IOKit; };
  net = callPackage ./net.nix { inherit IOKit CoreFoundation; };
})
+5 −1
Original line number Diff line number Diff line
{ lib
{ stdenv
, lib
, rustPlatform
, fetchFromGitHub
, nix-update-script
, IOKit
}:

rustPlatform.buildRustPackage {
@@ -17,6 +19,8 @@ rustPlatform.buildRustPackage {

  cargoHash = "sha256-AACpzSavY6MlYnl1lDYxVlfsEvEpNK0u8SzsoSZbqFc=";

  buildInputs = lib.optionals stdenv.isDarwin [ IOKit ];

  passthru = {
    updateScript = nix-update-script { };
  };