diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2024-03-11 11:47:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-11 11:47:33 +0100 |
commit | 6ebe8723057a40b45882efe863ecb0e7a5b11c9c (patch) | |
tree | 646247b677d79e54c0febb34440f272bec2f1836 /pkgs/servers | |
parent | 6824cbef09a4d612dd1820239541a03348b7163a (diff) | |
parent | 0ac49e81be86cff7e061409570a3f3bb5f196d23 (diff) |
Merge pull request #285865 from sikmir/reproxy
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/reproxy/default.nix | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/pkgs/servers/reproxy/default.nix b/pkgs/servers/reproxy/default.nix deleted file mode 100644 index 21077aa83d1c1..0000000000000 --- a/pkgs/servers/reproxy/default.nix +++ /dev/null @@ -1,45 +0,0 @@ -{ lib, stdenv, buildGoModule, fetchFromGitHub }: - -buildGoModule rec { - pname = "reproxy"; - version = "1.0.0"; - - src = fetchFromGitHub { - owner = "umputun"; - repo = pname; - rev = "v${version}"; - hash = "sha256-ac4fOOMht2WGlrXLN95NEIA8ivqghhVuxHnBumvajx0="; - }; - - 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 - substituteInPlace app/discovery/provider/file_test.go \ - --replace "TestFile_Events" "SkipFile_Events" \ - --replace "TestFile_Events_BusyListener" "SkipFile_Events_BusyListener" - ''; - - vendorHash = null; - - ldflags = [ - "-s" "-w" "-X main.revision=${version}" - ]; - - installPhase = '' - install -Dm755 $GOPATH/bin/app $out/bin/reproxy - ''; - - meta = with lib; { - description = "Simple edge server / reverse proxy"; - homepage = "https://reproxy.io/"; - license = licenses.mit; - maintainers = with maintainers; [ sikmir ]; - mainProgram = "reproxy"; - }; -} |