Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

78 lines
1.3 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
libX11,
libXScrnSaver,
libXext,
gnulib,
autoconf,
automake,
libtool,
gettext,
pkg-config,
git,
perl,
texinfo,
help2man,
}:
stdenv.mkDerivation rec {
pname = "xprintidle-ng";
version = "0-unstable-2015-09-01";
src = fetchFromGitHub {
owner = "taktoa";
repo = "xprintidle-ng";
rev = "9083ba284d9222541ce7da8dc87d5a27ef5cc592";
sha256 = "0a5024vimpfrpj6w60j1ad8qvjkrmxiy8w1yijxfwk917ag9rkpq";
};
patches = [
./fix-config_h-includes-should-be-first.patch
];
postPatch = ''
substituteInPlace configure.ac \
--replace "AC_PREREQ([2.62])" "AC_PREREQ([2.64])"
'';
nativeBuildInputs = [
autoconf
automake
gettext
git
gnulib
help2man
libtool
perl
pkg-config
texinfo
];
configurePhase = ''
runHook preConfigure
./bootstrap --gnulib-srcdir=${gnulib}
./configure --prefix="$out"
runHook postConfigure
'';
buildInputs = [
libX11
libXScrnSaver
libXext
];
meta = {
inherit version;
description = "Command-line tool to print idle time from libXss";
homepage = "https://github.com/taktoa/xprintidle-ng";
license = lib.licenses.gpl2Only;
maintainers = [ lib.maintainers.raskin ];
platforms = lib.platforms.linux;
mainProgram = "xprintidle-ng";
};
}