nixpkgs/pkgs/tools/networking/knock/package.nix

37 lines
829 B
Nix
Raw Normal View History

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