commit
5e21eff612
2 changed files with 38 additions and 0 deletions
36
pkgs/servers/reproxy/default.nix
Normal file
36
pkgs/servers/reproxy/default.nix
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
{ lib, buildGoModule, fetchFromGitHub }:
|
||||||
|
|
||||||
|
buildGoModule rec {
|
||||||
|
pname = "reproxy";
|
||||||
|
version = "0.5.1";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "umputun";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-RB3+IU6halnk/2REh2CLDpQN7djn4Y1QuL8y8xppnQw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Requires network access
|
||||||
|
substituteInPlace app/main_test.go \
|
||||||
|
--replace "Test_Main" "Skip_Main"
|
||||||
|
'';
|
||||||
|
|
||||||
|
vendorSha256 = null;
|
||||||
|
|
||||||
|
buildFlagsArray = [
|
||||||
|
"-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 ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -19471,6 +19471,8 @@ in
|
||||||
|
|
||||||
redstore = callPackage ../servers/http/redstore { };
|
redstore = callPackage ../servers/http/redstore { };
|
||||||
|
|
||||||
|
reproxy = callPackage ../servers/reproxy { };
|
||||||
|
|
||||||
restic = callPackage ../tools/backup/restic { };
|
restic = callPackage ../tools/backup/restic { };
|
||||||
|
|
||||||
restic-rest-server = callPackage ../tools/backup/restic/rest-server.nix { };
|
restic-rest-server = callPackage ../tools/backup/restic/rest-server.nix { };
|
||||||
|
|
Loading…
Reference in a new issue