nixpkgs/pkgs/by-name/se/sendme/package.nix
2024-05-25 05:27:18 +00:00

35 lines
776 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "sendme";
version = "0.8.0";
src = fetchFromGitHub {
owner = "n0-computer";
repo = pname;
rev = "v${version}";
hash = "sha256-Ptfh00AaLoU/UCqzVRgD38CxeY1dP/Y1ADgQxyLzcMc=";
};
cargoHash = "sha256-iah0bz6E5akJmo+FAuJ0faDad3YNXt7jhK/6zYrg9lE=";
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";
};
}