lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 23.11-beta 38 lines 1.1 kB view raw
1{ lib, buildGoModule, fetchFromGitHub, fetchpatch }: 2 3buildGoModule rec { 4 pname = "filtron"; 5 version = "0.2.0"; 6 7 src = fetchFromGitHub { 8 owner = "asciimoo"; 9 repo = "filtron"; 10 rev = "v${version}"; 11 hash = "sha256-RihxlJvbHq5PaJz89NHl/wyXrKjSiC4XYAs7LSKAo6E="; 12 }; 13 14 vendorHash = "sha256-1DRR16WiBGvhOpq12L5njJJRRCIA7ajs1Py9j/3cWPE="; 15 16 patches = [ 17 # Update golang version in go.mod 18 (fetchpatch { 19 url = "https://github.com/asciimoo/filtron/commit/365a0131074b3b12aaa65194bfb542182a63413c.patch"; 20 hash = "sha256-QGR6YetEzA/b6tC4uD94LBkWv0+9PG7RD72Tpkn2gQU="; 21 }) 22 # Add missing go.sum file 23 (fetchpatch { 24 url = "https://github.com/asciimoo/filtron/commit/077769282b4e392e96a194c8ae71ff9f693560ea.patch"; 25 hash = "sha256-BhHbXDKiRjSzC6NKhKUiH6rjt/EgJcEprHMMJ1x/wiQ="; 26 }) 27 ]; 28 29 ldflags = [ "-s" "-w" ]; 30 31 meta = with lib; { 32 description = "Reverse HTTP proxy to filter requests by different rules."; 33 homepage = "https://github.com/asciimoo/filtron"; 34 license = licenses.agpl3; 35 maintainers = [ maintainers.dasj19 ]; 36 platforms = platforms.linux; 37 }; 38}