@@ -0,0 +1,36 @@
1+{ stdenv, fetchFromGitHub, libX11, libXScrnSaver, libXext, gnulib
2+ , autoconf, automake, libtool, gettext, pkgconfig
3+ , git, perl, texinfo, help2man
4+}:
5+stdenv.mkDerivation rec {
6+ version = "git-2015-09-01";
7+ name = "${baseName}-${version}";
8+ baseName = "xprintidle-ng";
9+
10+ buildInputs = [
11+ libX11 libXScrnSaver libXext gnulib
12+ autoconf automake libtool gettext pkgconfig git perl
13+ texinfo help2man
14+ ];
15+ src = fetchFromGitHub {
16+ owner = "taktoa";
17+ repo = "${baseName}";
18+ rev = "9083ba284d9222541ce7da8dc87d5a27ef5cc592";
19+ sha256 = "0a5024vimpfrpj6w60j1ad8qvjkrmxiy8w1yijxfwk917ag9rkpq";
20+ };
21+
22+ configurePhase = ''
23+ cp -r "${gnulib}" gnulib
24+ chmod a+rX,u+w -R gnulib
25+ ./bootstrap --gnulib-srcdir=gnulib
26+ ./configure --prefix="$out"
27+ '';
28+
29+ meta = {
30+ inherit version;
31+ description = ''A command-line tool to print idle time from libXss'';
32+ license = stdenv.lib.licenses.gpl2 ;
33+ maintainers = [stdenv.lib.maintainers.raskin];
34+ platforms = stdenv.lib.platforms.linux;
35+ };
36+}