From 68ba6ca863463418697b6a56e4edd8af722c6187 Mon Sep 17 00:00:00 2001 From: Vladimir Still Date: Sat, 3 Jan 2015 13:47:44 +0100 Subject: [PATCH] perlPackages: Add X11-IdleTime. --- pkgs/top-level/perl-packages.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 813284ede8f8..801f105952f6 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -10255,6 +10255,20 @@ let self = _self // overrides; _self = with self; { doCheck = false; }; + X11IdleTime = buildPerlPackage rec { + name = "X11-IdleTime-0.09"; + src = fetchurl { + url = "mirror://cpan/authors/id/A/AW/AWENDT/${name}.tar.gz"; + sha256 = "0j27cb9yy9ymni8cbiyxplbg086b8lv6b330nwqyx0briq3xrzfq"; + }; + buildInputs = [ pkgs.xlibs.libXext pkgs.xlibs.libXScrnSaver pkgs.xlibs.libX11 ]; + propagatedBuildInputs = [ InlineC ]; + patchPhase = ''sed -ie 's,-L/usr/X11R6/lib/,-L${pkgs.xlibs.libX11}/lib/ -L${pkgs.xlibs.libXext}/lib/ -L${pkgs.xlibs.libXScrnSaver}/lib/,' IdleTime.pm''; + meta = { + description = "Get the idle time of X11"; + }; + }; + X11Protocol = buildPerlPackage rec { name = "X11-Protocol-0.56"; src = fetchurl {