Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5}:
6
7buildGoModule rec {
8 pname = "nomore403";
9 version = "1.0.1";
10
11 src = fetchFromGitHub {
12 owner = "devploit";
13 repo = "nomore403";
14 tag = version;
15 hash = "sha256-qA1i8l2oBQQ5IF8ho3K2k+TAndUTFGwb2NfhyFqfKzU=";
16 };
17
18 vendorHash = "sha256-IGnTbuaQH8A6aKyahHMd2RyFRh4WxZ3Vx/A9V3uelRg=";
19
20 ldflags = [
21 "-s"
22 "-w"
23 "-X=main.Version=${version}"
24 "-X=main.BuildDate=1970-01-01T00:00:00Z"
25 ];
26
27 meta = {
28 description = "Tool to bypass 403/40X response codes";
29 homepage = "https://github.com/devploit/nomore403";
30 changelog = "https://github.com/devploit/nomore403/releases/tag/${version}";
31 license = lib.licenses.mit;
32 maintainers = with lib.maintainers; [ fab ];
33 mainProgram = "nomore403";
34 };
35}