2021-12-06 16:07:01 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, CoreServices, Security }:
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "piping-server-rust";
|
2022-03-30 09:31:56 +00:00
|
|
|
version = "0.12.1";
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nwtgck";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-L15ofIM5a/qoJHGXmkuTsmQLLmERG/PxAJ4+z1nn7w4=";
|
2021-10-28 06:52:43 +00:00
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
cargoSha256 = "sha256-CcIM7T7P4LbPxPK1ZqoJRP0IsLMEwMZg9DcuRu0aJHM=";
|
2021-12-06 16:07:01 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
2021-10-28 06:52:43 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Infinitely transfer between every device over pure HTTP with pipes or browsers";
|
|
|
|
homepage = "https://github.com/nwtgck/piping-server-rust";
|
|
|
|
changelog = "https://github.com/nwtgck/piping-server-rust/blob/v${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ figsoda ];
|
|
|
|
mainProgram = "piping-server";
|
|
|
|
};
|
|
|
|
}
|