Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / sy / syncthing-tray / package.nix
blob2fc912de8519d3d8ee283df6126a401833ff1aa7
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     sha256 = "0869kinnsfzb8ydd0sv9fgqsi1sy5rhqg4whfdnrv82xjc71xyw3";
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   };