blob: 6e1be43ac5f5669fe4e99048cc227cb79202e4a0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
buildGoModule rec {
pname = "httplab";
version = "0.4.0";
src = fetchFromGitHub {
owner = "qustavo";
repo = "httplab";
rev = "v${version}";
hash = "sha256-+qcECfQo9Wa4JQ09ujhKjQndmcFn03hTfII636+1ghA=";
};
vendorHash = null;
patches = [
# Add Go Modules support
(fetchpatch {
url = "https://github.com/qustavo/httplab/commit/80680bebc83f1ed19216f60339c62cd9213d736b.patch";
hash = "sha256-y4KO3FGwKNAfM+4uR3KDbV90d/4JeBGvWtfirDJrWZk=";
})
];
ldflags = [ "-s" "-w" ];
meta = with lib; {
homepage = "https://github.com/qustavo/httplab";
description = "Interactive WebServer";
license = licenses.mit;
maintainers = with maintainers; [ pradeepchhetri ];
mainProgram = "httplab";
};
}
|