2019-05-08 17:21:27 +01:00
|
|
|
{ stdenv, fetchFromGitHub, xlibsWrapper
|
|
|
|
, imake, gccmakedep, libXScrnSaver, xorgproto
|
|
|
|
}:
|
2008-07-07 12:54:25 +01:00
|
|
|
|
2016-05-15 04:43:14 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "xautolock";
|
2019-05-13 11:18:34 +01:00
|
|
|
version = "2.2-7-ga23dd5c";
|
2019-05-08 17:21:27 +01:00
|
|
|
|
|
|
|
# This repository contains xautolock-2.2 plus various useful patches that
|
|
|
|
# were collected from Debian, etc.
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "peti";
|
|
|
|
repo = "xautolock";
|
|
|
|
rev = "v${version}";
|
2019-05-13 11:18:34 +01:00
|
|
|
sha256 = "10j61rl0sx9sh84rjyfyddl73xb5i2cpb17fyrli8kwj39nw0v2g";
|
2008-07-07 12:54:25 +01:00
|
|
|
};
|
2019-05-08 17:21:27 +01:00
|
|
|
|
|
|
|
nativeBuildInputs = [ imake gccmakedep ];
|
|
|
|
buildInputs = [ xlibsWrapper libXScrnSaver xorgproto ];
|
|
|
|
|
2018-11-28 02:17:05 +00:00
|
|
|
makeFlags = [
|
|
|
|
"BINDIR=$(out)/bin"
|
|
|
|
"MANPATH=$(out)/share/man"
|
|
|
|
];
|
2019-05-08 17:21:27 +01:00
|
|
|
|
2019-11-04 12:33:53 +00:00
|
|
|
installTargets = [ "install" "install.man" ];
|
2019-05-08 17:21:27 +01:00
|
|
|
|
2016-05-15 04:43:14 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-10-11 06:55:05 +01:00
|
|
|
description = "Launch a given program when your X session has been idle for a given time";
|
2019-05-08 17:21:27 +01:00
|
|
|
homepage = "http://www.ibiblio.org/pub/linux/X11/screensavers";
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = with maintainers; [ peti ];
|
2017-04-08 04:00:45 +01:00
|
|
|
platforms = platforms.linux;
|
2016-05-15 04:43:14 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
2008-07-07 12:54:25 +01:00
|
|
|
}
|