Merge pull request #295219 from oluceps/add-glider

glider: init at 0.16.3
This commit is contained in:
Aleksana 2024-04-20 15:17:51 +08:00 committed by GitHub
commit 28aa531485
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "glider";
version = "0.16.3";
src = fetchFromGitHub {
owner = "nadoo";
repo = "glider";
rev = "v${version}";
hash = "sha256-nM6jKFqyaxZbn0wyEt0xy9uTu9JyLRfGTNsGPTQOXQw=";
};
vendorHash = "sha256-PGIBBop/waZDeQvW7iSi/AzLye/4t7nNXjX8zJsS2eo=";
ldflags = [
"-s"
"-w"
];
postInstall = ''
substituteInPlace systemd/glider@.service \
--replace-fail "/usr/bin/glider" "$out/bin/glider"
install -Dm444 -t "$out/lib/systemd/system/" systemd/glider@.service
'';
meta = with lib; {
homepage = "https://github.com/nadoo/glider";
description = "Forward proxy with multiple protocols support";
license = licenses.gpl3Only;
mainProgram = "glider";
maintainers = with maintainers; [ oluceps ];
platforms = platforms.linux;
};
}