blob: e0fd83897e80df12925018c9e62ef1083af865df (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib, stdenv, fetchFromGitHub
, imake, gccmakedep, libX11, libXext, libXScrnSaver, xorgproto
, nixosTests
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xautolock";
version = "2.2-7-ga23dd5c";
# This repository contains xautolock-2.2 plus various useful patches that
# were collected from Debian, etc.
src = fetchFromGitHub {
owner = "peti";
repo = "xautolock";
rev = "v${finalAttrs.version}";
hash = "sha256-T2zAbRqSTxRp9u6EdZmIZfVxaGveeZkJgjp1DWgORoI=";
};
nativeBuildInputs = [ imake gccmakedep ];
buildInputs = [ libX11 libXext libXScrnSaver xorgproto ];
makeFlags = [
"BINDIR=$(out)/bin"
"MANPATH=$(out)/share/man"
];
installTargets = [ "install" "install.man" ];
passthru.tests = { inherit (nixosTests) xautolock; };
meta = with lib; {
description = "Launch a given program when your X session has been idle for a given time";
homepage = "http://www.ibiblio.org/pub/linux/X11/screensavers";
maintainers = with maintainers; [ peti ];
platforms = platforms.linux;
license = licenses.gpl2Only;
mainProgram = "xautolock";
};
})
|