mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 04:46:43 +00:00
35 lines
775 B
Nix
35 lines
775 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sendme";
|
|
version = "0.15.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "n0-computer";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-wU9NnHqn/lTiPQB51o+CTNA1UWIOa21winiLW9ih7dM=";
|
|
};
|
|
|
|
cargoHash = "sha256-y8VnunKmNRMO8VOL6u1FpF3Rec+BD4E1KW9Z2J8/2xs=";
|
|
|
|
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";
|
|
};
|
|
}
|