From e80acad6049c2edf1cb6242c3c6d5db3d05f0972 Mon Sep 17 00:00:00 2001 From: "R. RyanTM" Date: Mon, 29 Apr 2019 21:30:18 -0700 Subject: [PATCH] arandr: 0.1.9 -> 0.1.10 Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/arandr/versions arandr 0.1.10 needs python3, so switch python version too. --- pkgs/tools/X11/arandr/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/X11/arandr/default.nix b/pkgs/tools/X11/arandr/default.nix index f33d03b6d15f..5baba1171571 100644 --- a/pkgs/tools/X11/arandr/default.nix +++ b/pkgs/tools/X11/arandr/default.nix @@ -1,13 +1,13 @@ -{ stdenv, fetchurl, xrandr, python2Packages }: +{ stdenv, fetchurl, gobject-introspection, gtk3, xrandr, python3Packages }: let - inherit (python2Packages) buildPythonApplication docutils pygtk; + inherit (python3Packages) buildPythonApplication docutils pygobject3; in buildPythonApplication rec { - name = "arandr-0.1.9"; + name = "arandr-0.1.10"; src = fetchurl { url = "https://christian.amsuess.com/tools/arandr/files/${name}.tar.gz"; - sha256 = "1i3f1agixxbfy4kxikb2b241p7c2lg73cl9wqfvlwz3q6zf5faxv"; + sha256 = "135q0llvm077jil2fr92ssw3p095m4r8jfj0lc5rr3m71n4srj6v"; }; patchPhase = '' @@ -18,7 +18,12 @@ in buildPythonApplication rec { doCheck = false; buildInputs = [ docutils ]; - propagatedBuildInputs = [ xrandr pygtk ]; + nativeBuildInputs = [ gobject-introspection gtk3 ]; + propagatedBuildInputs = [ xrandr pygobject3 ]; + + makeWrapperArgs = [ + "--set GI_TYPELIB_PATH $GI_TYPELIB_PATH" + ]; meta = { homepage = http://christian.amsuess.com/tools/arandr/;