nixpkgs/pkgs/tools/networking/httplab/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
789 B
Nix
Raw Normal View History

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 {
pname = "httplab";
2020-06-14 19:22:53 +02:00
version = "0.4.0";
2017-03-01 08:24:26 +01:00
src = fetchFromGitHub {
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" ];
meta = with lib; {
homepage = "https://github.com/qustavo/httplab";
2017-03-01 08:24:26 +01:00
description = "Interactive WebServer";
license = licenses.mit;
maintainers = with maintainers; [ pradeepchhetri ];
};
}