2021-11-28 18:18:40 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, stdenv, CoreServices, Security }:
|
2021-10-22 17:57:59 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "piping-server-rust";
|
2022-09-06 17:55:06 +01:00
|
|
|
version = "0.14.1";
|
2021-10-22 17:57:59 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nwtgck";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-06 17:55:06 +01:00
|
|
|
sha256 = "sha256-QgOrKAPLphvIMqcOrbYuo4ra65IV8dK5+6tyh+YyyP4=";
|
2021-10-22 17:57:59 +01:00
|
|
|
};
|
|
|
|
|
2022-09-06 17:55:06 +01:00
|
|
|
cargoSha256 = "sha256-Nd+Frhospp6ERYFuxzEzKbkLAFqTv7Lp7MWwv09S+KA=";
|
2021-10-22 17:57:59 +01:00
|
|
|
|
2021-11-28 18:18:40 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ];
|
2021-10-30 17:52:23 +01:00
|
|
|
|
2021-10-22 17:57:59 +01: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";
|
|
|
|
};
|
|
|
|
}
|