Unverified Commit 355e12b6 authored by Nabeen Tiwaree's avatar Nabeen Tiwaree Committed by GitHub
Browse files

x4: init at 0.1.0 (#346736)



Co-authored-by: default avataraleksana <me@aleksana.moe>
parent f426fcb7
Loading
Loading
Loading
Loading
+50 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  pkg-config,
  openssl,
  zlib,
  stdenv,
  darwin,
}:

rustPlatform.buildRustPackage rec {
  pname = "x4";
  version = "0.1.0";

  src = fetchFromGitHub {
    owner = "pwnwriter";
    repo = "x4";
    rev = "v${version}";
    hash = "sha256-IF+8lu56fzYM79p7MiNpVLFIs2GKPlzw5pNXD/hT6BM=";
  };

  cargoHash = "sha256-p3iMqnRW/quk2AHr2nLgOTvtshZ+xo6DGvWDsDj+bvU=";

  nativeBuildInputs = [
    pkg-config
  ];

  buildInputs =
    [
      openssl
      zlib
    ]
    ++ lib.optionals stdenv.isDarwin [
      darwin.apple_sdk.frameworks.Security
    ];

  env = {
    OPENSSL_NO_VENDOR = true;
  };

  meta = {
    description = "Execute shell commands to server(s) via ssh protocol";
    homepage = "https://github.com/pwnwriter/x4";
    changelog = "https://github.com/pwnwriter/x4/blob/${src.rev}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ pwnwriter ];
    mainProgram = "x4";
  };
}