1 { lib, stdenv, fetchFromGitHub
2 , imake, gccmakedep, libX11, libXext, libXScrnSaver, xorgproto
6 stdenv.mkDerivation (finalAttrs: {
8 version = "2.2-7-ga23dd5c";
10 # This repository contains xautolock-2.2 plus various useful patches that
11 # were collected from Debian, etc.
12 src = fetchFromGitHub {
15 rev = "v${finalAttrs.version}";
16 hash = "sha256-T2zAbRqSTxRp9u6EdZmIZfVxaGveeZkJgjp1DWgORoI=";
19 nativeBuildInputs = [ imake gccmakedep ];
20 buildInputs = [ libX11 libXext libXScrnSaver xorgproto ];
24 "MANPATH=$(out)/share/man"
27 installTargets = [ "install" "install.man" ];
29 passthru.tests = { inherit (nixosTests) xautolock; };
32 description = "Launch a given program when your X session has been idle for a given time";
33 homepage = "http://www.ibiblio.org/pub/linux/X11/screensavers";
34 maintainers = with maintainers; [ peti ];
35 platforms = platforms.linux;
36 license = licenses.gpl2Only;
37 mainProgram = "xautolock";