sshx: init at unstable-2023-11-04

authored by Pablo Ovelleiro Corral and committed by Jörg Thalheim da41de71 6cf687b1

+53
+53
pkgs/by-name/ss/sshx/package.nix
··· 1 + { lib 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , pkg-config 5 + , protobuf 6 + , zstd 7 + , stdenv 8 + , darwin 9 + }: 10 + 11 + rustPlatform.buildRustPackage rec { 12 + pname = "sshx"; 13 + version = "unstable-2023-11-04"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "ekzhang"; 17 + repo = "sshx"; 18 + rev = "91c82d46cde4d1ffa0ae34e2a9a49911e2e53baa"; 19 + hash = "sha256-X9c7ZKIpWI5EsbkgB8FJWlwQQXHAcPjLKp2Bvo0fo/w="; 20 + }; 21 + 22 + cargoHash = "sha256-mOK5gpPuUKzN5xnJs5nFyslxr9IIHtiCylMP53ObDqg="; 23 + 24 + nativeBuildInputs = [ 25 + pkg-config 26 + protobuf 27 + ]; 28 + 29 + buildInputs = [ 30 + zstd 31 + ] ++ lib.optionals stdenv.isDarwin [ 32 + darwin.apple_sdk.frameworks.Security 33 + ]; 34 + 35 + env = { 36 + ZSTD_SYS_USE_PKG_CONFIG = true; 37 + }; 38 + 39 + outputs = [ "out" "server" ]; 40 + 41 + postInstall = '' 42 + moveToOutput 'bin/sshx' "$out" 43 + moveToOutput 'bin/sshx-server' "$server" 44 + ''; 45 + 46 + meta = with lib; { 47 + description = "Fast, collaborative live terminal sharing over the web"; 48 + homepage = "https://github.com/ekzhang/sshx"; 49 + license = licenses.mit; 50 + maintainers = with maintainers; [ pinpox ]; 51 + mainProgram = "sshx"; 52 + }; 53 + }