depot/third_party/nixpkgs/pkgs/tools/networking/knock/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

36 lines
829 B
Nix

{ lib
, buildGoModule
, fetchFromGitea
, installShellFiles
}:
buildGoModule rec {
pname = "knock";
version = "0.0.2";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "nat-418";
repo ="knock";
rev = "v${version}";
hash = "sha256-K+L4F4bTERQSqISAmfyps/U5GJ2N0FdJ3RmpiUmt4uA=";
};
vendorHash = "sha256-wkSXdIgfkHbVJYsgm/hLAeKA9geof92U3mzSzt7eJE8=";
outputs = [ "out" "man" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage man/man1/knock.1
'';
meta = with lib; {
description = "Simple CLI network reachability tester";
homepage = "https://codeberg.org/nat-418/knock";
license = licenses.bsd0;
changelog = "https://codeberg.org/nat-418/knock/raw/branch/trunk/CHANGELOG.md";
maintainers = with maintainers; [ nat-418 ];
};
}