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