diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-12-01 19:00:09 +0100 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-12-01 19:00:09 +0100 |
commit | 9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d (patch) | |
tree | 4368f9e4cb2d5b93a956c085337e45cb70f1e331 /nixpkgs/pkgs/by-name/ss | |
parent | a9cbfb6941b47d6f50129e6e36927882392daed7 (diff) | |
parent | 2344fe1da14cb08b0c18743b207995f9b8597915 (diff) | |
download | nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.gz nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.bz2 nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.lz nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.xz nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.tar.zst nixlib-9e9b07490d5bab5d115c66b80bdb10ff0c11ed8d.zip |
Merge https://github.com/NixOS/nixpkgs
Diffstat (limited to 'nixpkgs/pkgs/by-name/ss')
-rw-r--r-- | nixpkgs/pkgs/by-name/ss/sshx/package.nix | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/ss/sshx/package.nix b/nixpkgs/pkgs/by-name/ss/sshx/package.nix new file mode 100644 index 000000000000..ff3de6705453 --- /dev/null +++ b/nixpkgs/pkgs/by-name/ss/sshx/package.nix @@ -0,0 +1,53 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, pkg-config +, protobuf +, zstd +, stdenv +, darwin +}: + +rustPlatform.buildRustPackage rec { + pname = "sshx"; + version = "unstable-2023-11-04"; + + src = fetchFromGitHub { + owner = "ekzhang"; + repo = "sshx"; + rev = "91c82d46cde4d1ffa0ae34e2a9a49911e2e53baa"; + hash = "sha256-X9c7ZKIpWI5EsbkgB8FJWlwQQXHAcPjLKp2Bvo0fo/w="; + }; + + cargoHash = "sha256-mOK5gpPuUKzN5xnJs5nFyslxr9IIHtiCylMP53ObDqg="; + + nativeBuildInputs = [ + pkg-config + protobuf + ]; + + buildInputs = [ + zstd + ] ++ lib.optionals stdenv.isDarwin [ + darwin.apple_sdk.frameworks.Security + ]; + + env = { + ZSTD_SYS_USE_PKG_CONFIG = true; + }; + + outputs = [ "out" "server" ]; + + postInstall = '' + moveToOutput 'bin/sshx' "$out" + moveToOutput 'bin/sshx-server' "$server" + ''; + + meta = with lib; { + description = "Fast, collaborative live terminal sharing over the web"; + homepage = "https://github.com/ekzhang/sshx"; + license = licenses.mit; + maintainers = with maintainers; [ pinpox ]; + mainProgram = "sshx"; + }; +} |