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

36 lines
988 B
Nix
Raw Normal View History

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