2023-01-25 13:00:00 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
2017-03-01 08:24:26 +01:00
|
|
|
|
2023-01-25 13:00:00 +01:00
|
|
|
buildGoModule rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "httplab";
|
2020-06-14 19:22:53 +02:00
|
|
|
version = "0.4.0";
|
2017-03-01 08:24:26 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2023-01-27 15:31:59 +01:00
|
|
|
owner = "qustavo";
|
2017-03-01 08:24:26 +01:00
|
|
|
repo = "httplab";
|
2023-01-25 13:00:00 +01:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-+qcECfQo9Wa4JQ09ujhKjQndmcFn03hTfII636+1ghA=";
|
2017-03-01 08:24:26 +01:00
|
|
|
};
|
|
|
|
|
2023-01-25 13:00:00 +01:00
|
|
|
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" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2023-01-27 15:31:59 +01:00
|
|
|
homepage = "https://github.com/qustavo/httplab";
|
2017-03-01 08:24:26 +01:00
|
|
|
description = "Interactive WebServer";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ pradeepchhetri ];
|
|
|
|
};
|
|
|
|
}
|