1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 fetchpatch,
6}:
7
8buildGoModule rec {
9 pname = "simplehttp2server";
10 version = "3.1.3";
11
12 src = fetchFromGitHub {
13 owner = "GoogleChromeLabs";
14 repo = "simplehttp2server";
15 rev = version;
16 sha256 = "113mcfvy1m91wask5039mhr0187nlw325ac32785yl4bb4igi8aw";
17 };
18
19 patches = [
20 # Migrate to Go modules
21 (fetchpatch {
22 url = "https://github.com/GoogleChromeLabs/simplehttp2server/commit/7090b4af33846c48b336335f6a19514b7c1d4392.patch";
23 hash = "sha256-xGBPNdAmOAUkr7j2VDfTi3Bm13y/b3nuqDLf1jiGct4=";
24 })
25 ];
26
27 vendorHash = "sha256-PcDy+46Pz6xOxxwkSjojsbKZyR1yHdbWAJT+HFAEKkA=";
28 proxyVendor = true;
29
30 meta = with lib; {
31 homepage = "https://github.com/GoogleChromeLabs/simplehttp2server";
32 description = "HTTP/2 server for development purposes";
33 license = licenses.asl20;
34 maintainers = with maintainers; [ yrashk ];
35 mainProgram = "simplehttp2server";
36 };
37}