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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
831 B
Nix
Raw Normal View History

2024-03-08 15:52:44 +01:00
{ lib
, buildGoModule
2024-04-19 19:58:33 +02:00
, fetchFromGitea
2024-03-08 15:52:44 +01:00
, installShellFiles
}:
buildGoModule rec {
pname = "knock";
version = "0.0.2";
2024-04-19 19:58:33 +02:00
src = fetchFromGitea {
domain = "codeberg.org";
2024-03-08 15:52:44 +01:00
owner = "nat-418";
repo ="knock";
2024-04-19 19:58:33 +02:00
rev = "v${version}";
hash = "sha256-K+L4F4bTERQSqISAmfyps/U5GJ2N0FdJ3RmpiUmt4uA=";
2024-03-08 15:52:44 +01:00
};
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";
2024-04-19 19:58:33 +02:00
homepage = "https://codeberg.org/nat-418/knock";
2024-03-08 15:52:44 +01:00
license = licenses.bsd0;
2024-04-19 19:58:33 +02:00
changelog = "https://codeberg.org/nat-418/knock/raw/branch/trunk/CHANGELOG.md";
2024-03-08 15:52:44 +01:00
maintainers = with maintainers; [ nat-418 ];
};
}