nixpkgs/pkgs/misc/screensavers/xautolock/default.nix

36 lines
983 B
Nix
Raw Normal View History

2019-05-08 17:21:27 +01:00
{ stdenv, fetchFromGitHub, xlibsWrapper
, imake, gccmakedep, libXScrnSaver, xorgproto
}:
stdenv.mkDerivation rec {
pname = "xautolock";
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}";
sha256 = "10j61rl0sx9sh84rjyfyddl73xb5i2cpb17fyrli8kwj39nw0v2g";
};
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
installTargets = "install install.man";
2019-05-08 17:21:27 +01:00
meta = with stdenv.lib; {
2019-05-08 17:21:27 +01:00
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 ];
2017-04-08 04:00:45 +01:00
platforms = platforms.linux;
license = licenses.gpl2;
};
}