Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 846 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitea, 5 installShellFiles, 6}: 7 8buildGoModule rec { 9 pname = "knock"; 10 version = "0.0.2"; 11 12 src = fetchFromGitea { 13 domain = "codeberg.org"; 14 owner = "nat-418"; 15 repo = "knock"; 16 rev = "v${version}"; 17 hash = "sha256-K+L4F4bTERQSqISAmfyps/U5GJ2N0FdJ3RmpiUmt4uA="; 18 }; 19 20 vendorHash = "sha256-wkSXdIgfkHbVJYsgm/hLAeKA9geof92U3mzSzt7eJE8="; 21 22 outputs = [ 23 "out" 24 "man" 25 ]; 26 27 nativeBuildInputs = [ installShellFiles ]; 28 29 postInstall = '' 30 installManPage man/man1/knock.1 31 ''; 32 33 meta = with lib; { 34 description = "Simple CLI network reachability tester"; 35 homepage = "https://codeberg.org/nat-418/knock"; 36 license = licenses.bsd0; 37 changelog = "https://codeberg.org/nat-418/knock/raw/branch/trunk/CHANGELOG.md"; 38 maintainers = with maintainers; [ nat-418 ]; 39 }; 40}