diff options
author | worldofpeace <worldofpeace@users.noreply.github.com> | 2019-01-15 19:26:33 -0500 |
---|---|---|
committer | worldofpeace <worldofpeace@users.noreply.github.com> | 2019-01-15 19:26:33 -0500 |
commit | ff22ad20e71a9e161a1fefdc3b6678cf6b586cda (patch) | |
tree | a0a5a5802f64fc8011240d51987abd2948357b30 /pkgs/desktops/mate/mozo | |
parent | f9b8f2cf4fecfa8f6a99e6365d435c8c81f783fb (diff) |
mate.mozo: switch to using buildPythonApplication, cleanup
Diffstat (limited to 'pkgs/desktops/mate/mozo')
-rw-r--r-- | pkgs/desktops/mate/mozo/default.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/pkgs/desktops/mate/mozo/default.nix b/pkgs/desktops/mate/mozo/default.nix index 869897179ad77..f2419f7f5e806 100644 --- a/pkgs/desktops/mate/mozo/default.nix +++ b/pkgs/desktops/mate/mozo/default.nix @@ -1,21 +1,22 @@ -{ stdenv, fetchurl, pkgconfig, intltool, mate, pythonPackages }: +{ stdenv, python, fetchurl, pkgconfig, intltool, mate, gtk3, glib, wrapGAppsHook, gobject-introspection }: -stdenv.mkDerivation rec { - name = "mozo-${version}"; +python.pkgs.buildPythonApplication rec { + pname = "mozo"; version = "1.20.2"; + format = "other"; + doCheck = false; + src = fetchurl { - url = "http://pub.mate-desktop.org/releases/${mate.getRelease version}/${name}.tar.xz"; + url = "http://pub.mate-desktop.org/releases/${mate.getRelease version}/${pname}-${version}.tar.xz"; sha256 = "1q4hqhigimxav2a8xxyd53lq8q80szsphcv37y2jhm6g6wvdmvhd"; }; - - pythonPath = [ mate.mate-menus pythonPackages.pygobject3 ]; - nativeBuildInputs = [ pkgconfig intltool pythonPackages.wrapPython ]; + nativeBuildInputs = [ pkgconfig intltool gobject-introspection wrapGAppsHook ]; - buildInputs = [ pythonPackages.python ] ++ pythonPath; + propagatedBuildInputs = [ mate.mate-menus python.pkgs.pygobject3 ]; - preFixup = "wrapPythonPrograms"; + buildInputs = [ gtk3 glib ]; meta = with stdenv.lib; { description = "MATE Desktop menu editor"; |