mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
35 lines
788 B
Nix
35 lines
788 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sendme";
|
|
version = "0.18.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "n0-computer";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-gPuzwJtQdQDFVuWYoH/TGSf+Fp++UvK9D7mL41p9eOk=";
|
|
};
|
|
|
|
cargoHash = "sha256-ML+USTwdMLyLcc3Fzu/eD7J7s7Sa1lEOZm/txjZv31E=";
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.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";
|
|
};
|
|
}
|