blob: c2ac0eaf960ddf543f1d5eee499ce7d92c8cd1d1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule (finalAttrs: {
pname = "glider";
version = "0.16.4";
src = fetchFromGitHub {
owner = "nadoo";
repo = "glider";
rev = "v${finalAttrs.version}";
hash = "sha256-LrIHdI1/55llENjDgFJxh2KKsJf/tLT3P9L9jhLhfS0=";
};
vendorHash = "sha256-v/HJUah+QC34hcf9y5yRSFO8OTkqD2wzdOH/wIXrKoA=";
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 = {
homepage = "https://github.com/nadoo/glider";
description = "Forward proxy with multiple protocols support";
license = lib.licenses.gpl3Only;
mainProgram = "glider";
maintainers = with lib.maintainers; [ oluceps ];
platforms = lib.platforms.linux;
};
})
|