2025-07-26 11:39:35 +02:00

40 lines
955 B
Nix

{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "sendme";
version = "0.26.0";
src = fetchFromGitHub {
owner = "n0-computer";
repo = "sendme";
rev = "v${version}";
hash = "sha256-21JNyncChl8rv3IDdvYRF/nvMpAGCBps4xsBP9b/1lA=";
};
cargoHash = "sha256-1VVpjeGU6/+apTHv7klo7FkAQ3AVjiziQRNI7yFbvh0=";
__darwinAllowLocalNetworking = true;
# On Darwin, sendme 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 = "Tool to send files and directories, based on iroh";
homepage = "https://iroh.computer/sendme";
license = with licenses; [
asl20
mit
];
maintainers = with maintainers; [ cameronfyfe ];
mainProgram = "sendme";
};
}