about summary refs log tree commit diff
path: root/pkgs/desktops/mate/mozo/default.nix
blob: c402cf039300fa6c23e11c4984e0247e9180202c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{ lib
, python3
, fetchurl
, pkg-config
, gettext
, mate-menus
, gtk3
, glib
, wrapGAppsHook3
, gobject-introspection
, mateUpdateScript
}:

python3.pkgs.buildPythonApplication rec {
  pname = "mozo";
  version = "1.28.0";

  format = "other";
  doCheck = false;

  src = fetchurl {
    url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
    sha256 = "/piYT/1qqMNtBZS879ugPeObQtQeAHJRaAOE8870SSQ=";
  };

  nativeBuildInputs = [
    pkg-config
    gettext
    gobject-introspection
    wrapGAppsHook3
  ];

  propagatedBuildInputs = [
    mate-menus
    python3.pkgs.pygobject3
  ];

  buildInputs = [
    gtk3
    glib
  ];

  enableParallelBuilding = true;

  passthru.updateScript = mateUpdateScript { inherit pname; };

  meta = with lib; {
    description = "MATE Desktop menu editor";
    mainProgram = "mozo";
    homepage = "https://github.com/mate-desktop/mozo";
    license = with licenses; [ lgpl2Plus ];
    platforms = platforms.unix;
    maintainers = teams.mate.members;
  };
}