2015-12-12 11:47:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libX11, libXScrnSaver, libXext, gnulib
|
|
|
|
, autoconf, automake, libtool, gettext, pkgconfig
|
|
|
|
, git, perl, texinfo, help2man
|
|
|
|
}:
|
2019-04-25 19:13:47 +02:00
|
|
|
|
2015-12-12 11:47:00 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-04-25 19:13:47 +02:00
|
|
|
pname = "xprintidle-ng";
|
2015-12-12 11:47:00 +01:00
|
|
|
version = "git-2015-09-01";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "taktoa";
|
2019-04-25 19:13:47 +02:00
|
|
|
repo = pname;
|
2015-12-12 11:47:00 +01:00
|
|
|
rev = "9083ba284d9222541ce7da8dc87d5a27ef5cc592";
|
|
|
|
sha256 = "0a5024vimpfrpj6w60j1ad8qvjkrmxiy8w1yijxfwk917ag9rkpq";
|
|
|
|
};
|
|
|
|
|
2019-04-25 19:13:47 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace "AC_PREREQ([2.62])" "AC_PREREQ([2.63])"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf automake gettext git gnulib
|
|
|
|
help2man libtool perl pkgconfig texinfo
|
|
|
|
];
|
|
|
|
|
2015-12-12 11:47:00 +01:00
|
|
|
configurePhase = ''
|
|
|
|
cp -r "${gnulib}" gnulib
|
|
|
|
chmod a+rX,u+w -R gnulib
|
|
|
|
./bootstrap --gnulib-srcdir=gnulib
|
|
|
|
./configure --prefix="$out"
|
|
|
|
'';
|
|
|
|
|
2019-04-25 19:13:47 +02:00
|
|
|
buildInputs = [
|
|
|
|
libX11 libXScrnSaver libXext
|
|
|
|
];
|
|
|
|
|
2015-12-12 11:47:00 +01:00
|
|
|
meta = {
|
|
|
|
inherit version;
|
|
|
|
description = ''A command-line tool to print idle time from libXss'';
|
2019-04-25 19:13:47 +02:00
|
|
|
homepage = http://taktoa.me/xprintidle-ng/;
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2015-12-12 11:47:00 +01:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|