Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 38 lines 877 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5}: 6buildGoModule rec { 7 pname = "glider"; 8 version = "0.16.4"; 9 10 src = fetchFromGitHub { 11 owner = "nadoo"; 12 repo = "glider"; 13 rev = "v${version}"; 14 hash = "sha256-LrIHdI1/55llENjDgFJxh2KKsJf/tLT3P9L9jhLhfS0="; 15 }; 16 17 vendorHash = "sha256-v/HJUah+QC34hcf9y5yRSFO8OTkqD2wzdOH/wIXrKoA="; 18 19 ldflags = [ 20 "-s" 21 "-w" 22 ]; 23 24 postInstall = '' 25 substituteInPlace systemd/glider@.service \ 26 --replace-fail "/usr/bin/glider" "$out/bin/glider" 27 install -Dm444 -t "$out/lib/systemd/system/" systemd/glider@.service 28 ''; 29 30 meta = with lib; { 31 homepage = "https://github.com/nadoo/glider"; 32 description = "Forward proxy with multiple protocols support"; 33 license = licenses.gpl3Only; 34 mainProgram = "glider"; 35 maintainers = with maintainers; [ oluceps ]; 36 platforms = platforms.linux; 37 }; 38}