Unverified Commit f56d9da6 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

dumbpipe: fix `checkPhase` with `sandbox=relaxed` on Darwin (#386900)

parents 5c4f9f9b e848cf13
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -3,7 +3,6 @@
  stdenv,
  fetchFromGitHub,
  rustPlatform,
  darwin,
}:

rustPlatform.buildRustPackage rec {
@@ -20,12 +19,14 @@ rustPlatform.buildRustPackage rec {
  useFetchCargoVendor = true;
  cargoHash = "sha256-uuY0nh4VHzyM7+cbgyycr5I3IjE0OeQ0eg12qVXe4BQ=";

  buildInputs = lib.optionals stdenv.hostPlatform.isDarwin (
    with darwin.apple_sdk.frameworks;
    [
      SystemConfiguration
    ]
  );
  __darwinAllowLocalNetworking = true;

  # On Darwin, dumbpipe invokes CoreFoundation APIs that read ICU data from the
  # system. Ensure these paths are accessible in the sandbox to avoid segfaults
  # during checkPhase.
  sandboxProfile = ''
    (allow file-read* (subpath "/usr/share/icu"))
  '';

  meta = with lib; {
    description = "Connect A to B - Send Data";