2022-10-29 17:50:36 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
|
|
|
, imake, gccmakedep, libX11, libXext, libXScrnSaver, xorgproto
|
2019-05-08 18:21:27 +02:00
|
|
|
}:
|
2008-07-07 13:54:25 +02:00
|
|
|
|
2016-05-15 05:43:14 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xautolock";
|
2019-05-13 12:18:34 +02:00
|
|
|
version = "2.2-7-ga23dd5c";
|
2019-05-08 18:21:27 +02: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 12:18:34 +02:00
|
|
|
sha256 = "10j61rl0sx9sh84rjyfyddl73xb5i2cpb17fyrli8kwj39nw0v2g";
|
2008-07-07 13:54:25 +02:00
|
|
|
};
|
2019-05-08 18:21:27 +02:00
|
|
|
|
|
|
|
nativeBuildInputs = [ imake gccmakedep ];
|
2022-10-29 17:50:36 +02:00
|
|
|
buildInputs = [ libX11 libXext libXScrnSaver xorgproto ];
|
2019-05-08 18:21:27 +02:00
|
|
|
|
2018-11-28 03:17:05 +01:00
|
|
|
makeFlags = [
|
|
|
|
"BINDIR=$(out)/bin"
|
|
|
|
"MANPATH=$(out)/share/man"
|
|
|
|
];
|
2019-05-08 18:21:27 +02:00
|
|
|
|
2019-11-04 13:33:53 +01:00
|
|
|
installTargets = [ "install" "install.man" ];
|
2019-05-08 18:21:27 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-10-11 07:55:05 +02:00
|
|
|
description = "Launch a given program when your X session has been idle for a given time";
|
2019-05-08 18:21:27 +02:00
|
|
|
homepage = "http://www.ibiblio.org/pub/linux/X11/screensavers";
|
2019-07-03 11:27:39 +02:00
|
|
|
maintainers = with maintainers; [ peti ];
|
2017-04-08 05:00:45 +02:00
|
|
|
platforms = platforms.linux;
|
2016-05-15 05:43:14 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
2008-07-07 13:54:25 +02:00
|
|
|
}
|