2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libX11, libXScrnSaver, libXext, gnulib
|
2021-02-05 17:12:51 +00:00
|
|
|
, autoconf, automake, libtool, gettext, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, git, perl, texinfo, help2man
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xprintidle-ng";
|
|
|
|
version = "git-2015-09-01";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "taktoa";
|
|
|
|
repo = pname;
|
|
|
|
rev = "9083ba284d9222541ce7da8dc87d5a27ef5cc592";
|
|
|
|
sha256 = "0a5024vimpfrpj6w60j1ad8qvjkrmxiy8w1yijxfwk917ag9rkpq";
|
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure.ac \
|
|
|
|
--replace "AC_PREREQ([2.62])" "AC_PREREQ([2.63])"
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
autoconf automake gettext git gnulib
|
2021-02-05 17:12:51 +00:00
|
|
|
help2man libtool perl pkg-config texinfo
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
./bootstrap --gnulib-srcdir=${gnulib}
|
|
|
|
./configure --prefix="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libX11 libXScrnSaver libXext
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
inherit version;
|
2021-02-05 17:12:51 +00:00
|
|
|
description = "A command-line tool to print idle time from libXss";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://taktoa.me/xprintidle-ng/";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = [lib.maintainers.raskin];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|