evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / fi / filtron / package.nix
blob2f6a95367e97d45052d467caae0b00d2bf290bf4
1 { lib, buildGoModule, fetchFromGitHub, fetchpatch }:
3 buildGoModule rec {
4   pname = "filtron";
5   version = "0.2.0";
7   src = fetchFromGitHub {
8     owner = "asciimoo";
9     repo = "filtron";
10     rev = "v${version}";
11     hash = "sha256-RihxlJvbHq5PaJz89NHl/wyXrKjSiC4XYAs7LSKAo6E=";
12   };
14   vendorHash = "sha256-1DRR16WiBGvhOpq12L5njJJRRCIA7ajs1Py9j/3cWPE=";
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   ];
29   ldflags = [ "-s" "-w" ];
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.agpl3Only;
35     maintainers = [ maintainers.dasj19 ];
36     platforms = platforms.linux;
37     mainProgram = "filtron";
38   };