nixpkgs/pkgs/by-name/re/reproxy/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
919 B
Nix
Raw Normal View History

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