default.nix (675B)
1 { lib, buildGoModule, fetchFromGitHub }: 2 3 buildGoModule rec { 4 pname = "reproxy"; 5 version = "0.5.0"; 6 7 src = fetchFromGitHub { 8 owner = "umputun"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-xZVMwa/44/hGmZxMbHGNInMjsO/5ZXalcHZq5xgO1No="; 12 }; 13 14 postPatch = '' 15 # Requires network access 16 substituteInPlace app/main_test.go \ 17 --replace "Test_Main" "Skip_Main" 18 ''; 19 20 vendorSha256 = null; 21 22 postInstall = '' 23 mv $out/bin/{app,reproxy} 24 ''; 25 26 meta = with lib; { 27 description = "Simple edge server / reverse proxy"; 28 homepage = "http://reproxy.io/"; 29 license = licenses.mit; 30 maintainers = [ maintainers.sikmir ]; 31 }; 32 }