evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / sy / syncthing-tray / package.nix
blob0f429fd36c24b4bceae72fd97fabc8d77659232e
2   lib,
3   fetchFromGitHub,
4   fetchpatch,
5   buildGoModule,
6   pkg-config,
7   libappindicator-gtk3,
8 }:
10 buildGoModule rec {
11   pname = "syncthing-tray";
12   version = "0.7";
14   src = fetchFromGitHub {
15     owner = "alex2108";
16     repo = "syncthing-tray";
17     rev = "v${version}";
18     hash = "sha256-g/seDpNdoJ1tc5CTh2EuXoeo8XNpa9CaR+s7bW2cySA=";
19   };
21   vendorHash = "sha256-hGV5bivDUFEbOwU9sU+Eu5Wzz/aZtj6NUkpzHlmZTtw=";
23   patches = [
24     # Migrate to Go modules
25     (fetchpatch {
26       url = "https://github.com/alex2108/syncthing-tray/commit/94fac974a227cd03c566f81797a21b1bcc29adf5.patch";
27       hash = "sha256-uJfnI9kGIlw4OzFoML+ulgR3keOeVB3+ox/4RtYJNXY=";
28     })
29   ];
31   nativeBuildInputs = [ pkg-config ];
32   buildInputs = [ libappindicator-gtk3 ];
34   meta = {
35     description = "Simple application tray for syncthing";
36     homepage = "https://github.com/alex2108/syncthing-tray";
37     license = lib.licenses.mit;
38     maintainers = with lib.maintainers; [
39       luftmensch-luftmensch
40       nickhu
41     ];
42     mainProgram = "syncthing-tray";
43   };