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