2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, xorg
|
|
|
|
}:
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-04-27 09:35:20 +00:00
|
|
|
pname = "xprintidle";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0.3.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "g0hl1n";
|
|
|
|
repo = "xprintidle";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = finalAttrs.version;
|
2024-07-27 06:49:29 +00:00
|
|
|
sha256 = "sha256-MawkT4RconRDDCNnaWMxU18lK34ywcebbiHlYeZn/lc=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
xorg.libXScrnSaver
|
|
|
|
xorg.libX11
|
|
|
|
xorg.libXext
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/g0hl1n/xprintidle";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Utility that queries the X server for the user's idle time and prints it to stdout";
|
2022-04-27 09:35:20 +00:00
|
|
|
license = licenses.gpl2Only;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "xprintidle";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
})
|