about summary refs log tree commit diff
path: root/pkgs/desktops/gnome-3/apps/accerciser
diff options
context:
space:
mode:
authorworldofpeace <worldofpeace@protonmail.ch>2019-05-18 17:19:31 -0400
committerworldofpeace <worldofpeace@protonmail.ch>2019-05-18 17:19:31 -0400
commitea222ae04ea37424f38ebe4e14fc5a0a4dfe00ef (patch)
tree0e653d7dcc72bbb8d2737c2fff07dae59a48965b /pkgs/desktops/gnome-3/apps/accerciser
parent2be5edbbbba4969a06f07309cadc536b2043319a (diff)
downloadnixlib-ea222ae04ea37424f38ebe4e14fc5a0a4dfe00ef.tar
nixlib-ea222ae04ea37424f38ebe4e14fc5a0a4dfe00ef.tar.gz
nixlib-ea222ae04ea37424f38ebe4e14fc5a0a4dfe00ef.tar.bz2
nixlib-ea222ae04ea37424f38ebe4e14fc5a0a4dfe00ef.tar.lz
nixlib-ea222ae04ea37424f38ebe4e14fc5a0a4dfe00ef.tar.xz
nixlib-ea222ae04ea37424f38ebe4e14fc5a0a4dfe00ef.tar.zst
nixlib-ea222ae04ea37424f38ebe4e14fc5a0a4dfe00ef.zip
gnome3.accerciser: use buildPythonPackage, add xlib
This application will now actually work.
Diffstat (limited to 'pkgs/desktops/gnome-3/apps/accerciser')
-rw-r--r--pkgs/desktops/gnome-3/apps/accerciser/default.nix51
1 files changed, 42 insertions, 9 deletions
diff --git a/pkgs/desktops/gnome-3/apps/accerciser/default.nix b/pkgs/desktops/gnome-3/apps/accerciser/default.nix
index 94ecc5f4a324..f7d22220e644 100644
--- a/pkgs/desktops/gnome-3/apps/accerciser/default.nix
+++ b/pkgs/desktops/gnome-3/apps/accerciser/default.nix
@@ -1,27 +1,60 @@
-{ stdenv, fetchurl, pkgconfig, gnome3, gtk3, wrapGAppsHook, gobject-introspection
-, itstool, libxml2, python3Packages, at-spi2-core
-, dbus, gettext, libwnck3 }:
+{ stdenv
+, fetchurl
+, pkgconfig
+, gnome3
+, gtk3
+, glib
+, wrapGAppsHook
+, gobject-introspection
+, itstool
+, libxml2
+, python3
+, at-spi2-core
+, dbus
+, gettext
+, libwnck3
+, adwaita-icon-theme
+}:
 
-stdenv.mkDerivation rec {
+ python3.pkgs.buildPythonApplication rec {
   name = "accerciser-${version}";
   version = "3.32.2";
 
+  format = "other";
+
   src = fetchurl {
     url = "mirror://gnome/sources/accerciser/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
     sha256 = "05ssj8whzhf98lpcaca7m45h03g0wx0i8jlsrh3yn943mshzidy8";
   };
 
   nativeBuildInputs = [
-    pkgconfig wrapGAppsHook itstool gettext
+    gettext
     gobject-introspection # For setup hook
+    itstool
+    libxml2
+    pkgconfig
+    dbus
+    wrapGAppsHook
   ];
+
   buildInputs = [
-    gtk3 libxml2 python3Packages.python python3Packages.pyatspi
-    python3Packages.pygobject3 python3Packages.ipython
-    at-spi2-core dbus libwnck3 gnome3.adwaita-icon-theme
+    adwaita-icon-theme
+    at-spi2-core
+    gtk3
+    libwnck3
+  ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    ipython
+    pyatspi
+    pycairo
+    pygobject3
+    xlib
   ];
 
-  wrapPrefixVariables = [ "PYTHONPATH" ];
+  # Strict deps breaks accerciser
+  # and https://github.com/NixOS/nixpkgs/issues/56943
+  strictDeps = false;
 
   passthru = {
     updateScript = gnome3.updateScript {