diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/re/reproxy/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/re/reproxy/package.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/re/reproxy/package.nix b/nixpkgs/pkgs/by-name/re/reproxy/package.nix new file mode 100644 index 000000000000..f90ad1246cf8 --- /dev/null +++ b/nixpkgs/pkgs/by-name/re/reproxy/package.nix @@ -0,0 +1,37 @@ +{ lib, stdenv, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "reproxy"; + version = "1.1.1"; + + src = fetchFromGitHub { + owner = "umputun"; + repo = "reproxy"; + rev = "v${version}"; + hash = "sha256-/ydpqi7O4z41YxYb/RngPWk/79h3MIxAopzqIDMgw1g="; + }; + + vendorHash = null; + + ldflags = [ + "-s" "-w" "-X main.revision=${version}" + ]; + + checkFlags = [ + # Requires network access or fluky + "-skip=^Test(_MainWithPlugin|_MainWithSSL|_Main|Http_matchHandler|Http_withBasicAuth|File_Events|File_Events_BusyListener)$" + ]; + + postInstall = '' + mv $out/bin/{app,reproxy} + ''; + + meta = with lib; { + description = "Simple edge server / reverse proxy"; + homepage = "https://reproxy.io/"; + changelog = "https://github.com/umputun/reproxy/releases/tag/${src.rev}"; + license = licenses.mit; + maintainers = with maintainers; [ sikmir ]; + mainProgram = "reproxy"; + }; +} |