2024-01-06 23:00:29 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
|
|
|
, darwin
|
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sendme";
|
2024-04-30 04:44:30 +00:00
|
|
|
version = "0.6.0";
|
2024-01-06 23:00:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "n0-computer";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-30 04:44:30 +00:00
|
|
|
hash = "sha256-zUI9o3UWufl8NadwMeWsnoSuW8++tFw8NvzA6OdlkMI=";
|
2024-01-06 23:00:29 +00:00
|
|
|
};
|
|
|
|
|
2024-04-30 04:44:30 +00:00
|
|
|
cargoHash = "sha256-NuPBoMSB4Dr26O9IspFLPBzoUJljDjGZCXRyUIxa3IU=";
|
2024-01-06 23:00:29 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (
|
|
|
|
with darwin.apple_sdk.frameworks; [
|
|
|
|
SystemConfiguration
|
|
|
|
]
|
|
|
|
);
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A 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";
|
|
|
|
};
|
|
|
|
}
|