Skip to content

Commit 3c5ac8e

Browse files
committed
sendme: fix checkPhase with sandbox=relaxed on Darwin (NixOS#386891)
2 parents 07f9afa + 0f83f3f commit 3c5ac8e

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pkgs/by-name/se/sendme/package.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,15 @@ rustPlatform.buildRustPackage rec {
1818
useFetchCargoVendor = true;
1919
cargoHash = "sha256-1VVpjeGU6/+apTHv7klo7FkAQ3AVjiziQRNI7yFbvh0=";
2020

21+
__darwinAllowLocalNetworking = true;
22+
23+
# On Darwin, sendme invokes CoreFoundation APIs that read ICU data from the
24+
# system. Ensure these paths are accessible in the sandbox to avoid segfaults
25+
# during checkPhase.
26+
sandboxProfile = ''
27+
(allow file-read* (subpath "/usr/share/icu"))
28+
'';
29+
2130
meta = with lib; {
2231
description = "Tool to send files and directories, based on iroh";
2332
homepage = "https://iroh.computer/sendme";

0 commit comments

Comments
 (0)