{ lib , stdenv , fetchFromGitHub , rustPlatform , darwin }: rustPlatform.buildRustPackage rec { pname = "sendme"; version = "0.9.0"; src = fetchFromGitHub { owner = "n0-computer"; repo = pname; rev = "v${version}"; hash = "sha256-9ea0HZErwZ1PZwl1jlC3vafm/QnfhFRLYoFIOhxfY/g="; }; cargoHash = "sha256-4SAvx1G5hBi0il7zmlXFSBAxzqLE7Vezo1ZuVccqhms="; buildInputs = lib.optionals stdenv.isDarwin ( with darwin.apple_sdk.frameworks; [ SystemConfiguration ] ); 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"; }; }