2021-05-31 20:54:33 +00:00
|
|
|
{ lib, stdenv, buildGoModule, fetchFromGitHub }:
|
2021-05-14 20:57:49 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "reproxy";
|
2024-02-02 18:34:46 +00:00
|
|
|
version = "1.1.1";
|
2021-05-14 20:57:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "umputun";
|
2024-02-02 18:34:46 +00:00
|
|
|
repo = "reproxy";
|
2021-05-14 20:57:49 +00:00
|
|
|
rev = "v${version}";
|
2024-02-02 18:34:46 +00:00
|
|
|
hash = "sha256-/ydpqi7O4z41YxYb/RngPWk/79h3MIxAopzqIDMgw1g=";
|
2021-05-14 20:57:49 +00:00
|
|
|
};
|
|
|
|
|
2023-06-03 13:02:20 +00:00
|
|
|
vendorHash = null;
|
2021-05-14 20:57:49 +00:00
|
|
|
|
2021-08-26 06:45:51 +00:00
|
|
|
ldflags = [
|
|
|
|
"-s" "-w" "-X main.revision=${version}"
|
2021-05-14 20:57:49 +00:00
|
|
|
];
|
|
|
|
|
2024-02-02 18:34:46 +00:00
|
|
|
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}
|
2021-05-14 20:57:49 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple edge server / reverse proxy";
|
|
|
|
homepage = "https://reproxy.io/";
|
2024-02-02 18:34:46 +00:00
|
|
|
changelog = "https://github.com/umputun/reproxy/releases/tag/${src.rev}";
|
2021-05-14 20:57:49 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
2023-11-23 21:09:35 +00:00
|
|
|
mainProgram = "reproxy";
|
2021-05-14 20:57:49 +00:00
|
|
|
};
|
|
|
|
}
|