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