mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
knock: init at 0.0.2 (#294140)
This commit is contained in:
parent
8f2aa4d931
commit
a51e98b174
35
pkgs/tools/networking/knock/package.nix
Normal file
35
pkgs/tools/networking/knock/package.nix
Normal file
|
@ -0,0 +1,35 @@
|
|||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
, installShellFiles
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "knock";
|
||||
version = "0.0.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nat-418";
|
||||
repo ="knock";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-VXrWphfBDGDNsz4iuUdwwd46oqnmhJ9i3TtzMqHoSJk=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-wkSXdIgfkHbVJYsgm/hLAeKA9geof92U3mzSzt7eJE8=";
|
||||
|
||||
outputs = [ "out" "man" ];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
postInstall = ''
|
||||
installManPage man/man1/knock.1
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A simple CLI network reachability tester";
|
||||
homepage = "https://github.com/nat-418/knock";
|
||||
license = licenses.bsd0;
|
||||
changelog = "https://github.com/nat-418/knock/blob/${version}/CHANGELOG.md";
|
||||
maintainers = with maintainers; [ nat-418 ];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue