reproxy: 0.7.0 → 0.8.0

This commit is contained in:
Nikolay Korotkiy 2021-06-09 13:33:00 +03:00
parent c5bff358e9
commit bda8c3cb4a
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5

View file

@ -2,19 +2,21 @@
buildGoModule rec {
pname = "reproxy";
version = "0.7.0";
version = "0.8.0";
src = fetchFromGitHub {
owner = "umputun";
repo = pname;
rev = "v${version}";
hash = "sha256-TwqfnOKWpFC3fnHNu3/F6KLHuzE7uF6WEgZOArntpWI=";
hash = "sha256-zwQZr6BbvJ2Ol5pCLkZ49j0j5KWTK0N8BybvTr8PPeg=";
};
postPatch = ''
# Requires network access
substituteInPlace app/main_test.go \
--replace "Test_Main" "Skip_Main"
substituteInPlace app/proxy/proxy_test.go \
--replace "TestHttp_matchHandler" "SkipHttp_matchHandler"
'' + lib.optionalString stdenv.isDarwin ''
# Fails on Darwin.
# https://github.com/umputun/reproxy/issues/77