Skip to content

Commit

Permalink
x4: init at 0.1.0 (NixOS#346736)
Browse files Browse the repository at this point in the history
Co-authored-by: aleksana <[email protected]>
  • Loading branch information
pwnwriter and Aleksanaa authored Oct 29, 2024
1 parent f426fcb commit 355e12b
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions pkgs/by-name/x4/x4/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
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";
};
}

0 comments on commit 355e12b

Please sign in to comment.