Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildGoModule 3, fetchFromGitHub 4}: 5 6buildGoModule rec { 7 pname = "gosh"; 8 # https://github.com/redcode-labs/GoSH/issues/4 9 version = "2020523-${lib.strings.substring 0 7 rev}"; 10 rev = "7ccb068279cded1121eacc5a962c14b2064a1859"; 11 12 src = fetchFromGitHub { 13 owner = "redcode-labs"; 14 repo = "GoSH"; 15 inherit rev; 16 sha256 = "143ig0lqnkpnydhl8gnfzhg613x4wc38ibdbikkqwfyijlr6sgzd"; 17 }; 18 19 vendorSha256 = "sha256-ITz6nkhttG6bsIZLsp03rcbEBHUQ7pFl4H6FOHTXIU4="; 20 21 subPackages = [ "." ]; 22 23 meta = with lib; { 24 description = "Reverse/bind shell generator"; 25 homepage = "https://github.com/redcode-labs/GoSH"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ fab ] ++ teams.redcodelabs.members; 28 mainProgram = "GoSH"; 29 }; 30}