diff options
author | Paul Meyer <49727155+katexochen@users.noreply.github.com> | 2024-06-13 19:44:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 19:44:23 +0200 |
commit | 3fc61aae6d5fc493d96aad79cf57c2042a5a439d (patch) | |
tree | c6fe0d835d4aa680bab1517af03ef7cfa4c0110b | |
parent | f21471a154bb0d30d4226554c8cfa94c18dedd43 (diff) | |
parent | 7058dccca5b62d2d2dc8c260bef220fd1364c856 (diff) |
Merge pull request #318095 from katexochen/simplehttp2server/mods
simplehttp2server: migrate to buildGoModule
-rw-r--r-- | pkgs/servers/simplehttp2server/default.nix | 36 |
1 files changed, 21 insertions, 15 deletions
diff --git a/pkgs/servers/simplehttp2server/default.nix b/pkgs/servers/simplehttp2server/default.nix index b14056f5adca1..3ec200a1d2016 100644 --- a/pkgs/servers/simplehttp2server/default.nix +++ b/pkgs/servers/simplehttp2server/default.nix @@ -1,26 +1,32 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub, fetchpatch }: -buildGoPackage rec { +buildGoModule rec { pname = "simplehttp2server"; version = "3.1.3"; - goPackagePath = "github.com/GoogleChromeLabs/simplehttp2server"; - src = fetchFromGitHub { - owner = "GoogleChromeLabs"; - repo = "simplehttp2server"; - rev = version; - sha256 = "113mcfvy1m91wask5039mhr0187nlw325ac32785yl4bb4igi8aw"; + owner = "GoogleChromeLabs"; + repo = "simplehttp2server"; + rev = version; + sha256 = "113mcfvy1m91wask5039mhr0187nlw325ac32785yl4bb4igi8aw"; }; - goDeps = ./deps.nix; + 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; meta = with lib; { - homepage = "https://github.com/GoogleChromeLabs/simplehttp2server"; - description = "HTTP/2 server for development purposes"; - license = licenses.asl20; - maintainers = with maintainers; [ yrashk ]; - mainProgram = "simplehttp2server"; + homepage = "https://github.com/GoogleChromeLabs/simplehttp2server"; + description = "HTTP/2 server for development purposes"; + license = licenses.asl20; + maintainers = with maintainers; [ yrashk ]; + mainProgram = "simplehttp2server"; }; - } |