{ lib, rustPlatform, fetchFromGitHub, stdenv, CoreServices, Security }: rustPlatform.buildRustPackage rec { pname = "piping-server-rust"; version = "0.12.0"; src = fetchFromGitHub { owner = "nwtgck"; repo = pname; rev = "v${version}"; sha256 = "sha256-eDO2y/4660IAcD9vf1Vt6t3nv3Rc+zCRRFBbW/FeKIw="; }; cargoSha256 = "sha256-U68R543l28osPe0DjuERqB/G6ur/BZDpWMZIO9RObaM="; 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"; }; }