nixpkgs-suyu/pkgs/servers/piping-server-rust/default.nix

26 lines
872 B
Nix

{ lib, rustPlatform, fetchFromGitHub, stdenv, CoreServices, Security }:
rustPlatform.buildRustPackage rec {
pname = "piping-server-rust";
version = "0.15.0";
src = fetchFromGitHub {
owner = "nwtgck";
repo = pname;
rev = "v${version}";
sha256 = "sha256-s7tfGt1P/GmvjkIcy8DEwz+ObPxoMsIL7meAc5vMkKo=";
};
cargoSha256 = "sha256-gqKEFqf49sKZy+L0X4MxUfx2+iYoNIU415xHqOy8MZA=";
buildInputs = lib.optionals stdenv.isDarwin [ CoreServices Security ];
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";
};
}