traefik: add djds as maintainer (#377217)
[NixPkgs.git] / pkgs / by-name / nw / nwg-menu / package.nix
blob1499989b045153dc81b7beedd89bafd1000c84e1
2   lib,
3   fetchFromGitHub,
4   buildGoModule,
5   pkg-config,
6   wrapGAppsHook3,
7   gobject-introspection,
8   gtk-layer-shell,
9   gtk3,
10   pango,
11   gdk-pixbuf,
12   atk,
15 buildGoModule rec {
16   pname = "nwg-menu";
17   version = "0.1.7";
19   src = fetchFromGitHub {
20     owner = "nwg-piotr";
21     repo = "nwg-menu";
22     rev = "v${version}";
23     sha256 = "sha256-pWdLSoTeRgr5FPdBWMTVdsnijuwu8fLuNkyIRZ+JEe8=";
24   };
26   vendorHash = "sha256-iR+ytThRwmCvFEMcpSELPRwiramN5jPXAjaJtda4pOw=";
28   doCheck = false;
30   buildInputs = [
31     atk
32     gtk3
33     gdk-pixbuf
34     gtk-layer-shell
35     pango
36   ];
37   nativeBuildInputs = [
38     pkg-config
39     wrapGAppsHook3
40     gobject-introspection
41   ];
43   prePatch = ''
44     for file in main.go tools.go; do
45       substituteInPlace $file --replace '/usr/share/nwg-menu' $out/share
46     done
47   '';
49   postInstall = ''
50     mkdir -p $out/share/
51     cp menu-start.css $out/share/
52   '';
54   preFixup = ''
55     gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "$out/share")
56   '';
58   meta = with lib; {
59     homepage = "https://github.com/nwg-piotr/nwg-menu";
60     description = "MenuStart plugin for nwg-panel";
61     mainProgram = "nwg-menu";
62     license = licenses.mit;
63     platforms = platforms.linux;
64     maintainers = with maintainers; [ berbiche ];
65   };