nixpkgs/pkgs/by-name/se/sendme/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
776 B
Nix
Raw Normal View History

2024-01-06 23:00:29 +00:00
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "sendme";
version = "0.5.0";
2024-01-06 23:00:29 +00:00
src = fetchFromGitHub {
owner = "n0-computer";
repo = pname;
rev = "v${version}";
hash = "sha256-y34x4XLIWsxS5+R+6rAejz0z6TCTxoQYPosXmpt9234=";
2024-01-06 23:00:29 +00:00
};
cargoHash = "sha256-q4U4w4STs+34gJNyIibitf6RMvH6P/kBDZlOcwFrOxw=";
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";
};
}