2024-06-20 14:57:18 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "simplehttp2server";
|
|
|
|
version = "3.1.3";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-06-20 14:57:18 +00:00
|
|
|
owner = "GoogleChromeLabs";
|
|
|
|
repo = "simplehttp2server";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "113mcfvy1m91wask5039mhr0187nlw325ac32785yl4bb4igi8aw";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
patches = [
|
|
|
|
# Migrate to Go modules
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/GoogleChromeLabs/simplehttp2server/commit/7090b4af33846c48b336335f6a19514b7c1d4392.patch";
|
|
|
|
hash = "sha256-xGBPNdAmOAUkr7j2VDfTi3Bm13y/b3nuqDLf1jiGct4=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
vendorHash = "sha256-PcDy+46Pz6xOxxwkSjojsbKZyR1yHdbWAJT+HFAEKkA=";
|
|
|
|
proxyVendor = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
homepage = "https://github.com/GoogleChromeLabs/simplehttp2server";
|
|
|
|
description = "HTTP/2 server for development purposes";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ yrashk ];
|
|
|
|
mainProgram = "simplehttp2server";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|