From 7dd7b9e2188d2ff906a2346ed8abdb869057bdb7 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Wed, 9 Nov 2016 12:05:02 +0100 Subject: [PATCH] arandr: use python2 --- pkgs/tools/X11/arandr/default.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/X11/arandr/default.nix b/pkgs/tools/X11/arandr/default.nix index f86e9b60e04a..8bbe1b6a52b6 100644 --- a/pkgs/tools/X11/arandr/default.nix +++ b/pkgs/tools/X11/arandr/default.nix @@ -1,6 +1,8 @@ -{ stdenv, fetchurl, python, xrandr, pythonPackages }: +{ stdenv, fetchurl, xrandr, python2Packages }: -pythonPackages.buildPythonApplication rec { +let + inherit (python2Packages) buildPythonApplication docutils pygtk; +in buildPythonApplication rec { name = "arandr-0.1.9"; src = fetchurl { @@ -15,8 +17,8 @@ pythonPackages.buildPythonApplication rec { # no tests doCheck = false; - buildInputs = [ pythonPackages.docutils ]; - propagatedBuildInputs = [ xrandr pythonPackages.pygtk ]; + buildInputs = [ docutils ]; + propagatedBuildInputs = [ xrandr pygtk ]; meta = { homepage = http://christian.amsuess.com/tools/arandr/;