nixpkgs/pkgs/misc/screensavers/xautolock/default.nix
Peter Simons ca3fe59173 xautolock: bump to latest git version
The new version has a patch that makes --lockaftersleep more robust.
2019-05-13 12:19:25 +02:00

35 lines
1,000 B
Nix

{ stdenv, fetchFromGitHub, xlibsWrapper
, imake, gccmakedep, libXScrnSaver, xorgproto
}:
stdenv.mkDerivation rec {
name = "xautolock-${version}";
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${version}";
sha256 = "10j61rl0sx9sh84rjyfyddl73xb5i2cpb17fyrli8kwj39nw0v2g";
};
nativeBuildInputs = [ imake gccmakedep ];
buildInputs = [ xlibsWrapper libXScrnSaver xorgproto ];
makeFlags = [
"BINDIR=$(out)/bin"
"MANPATH=$(out)/share/man"
];
installTargets = "install install.man";
meta = with stdenv.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; [ garbas peti ];
platforms = platforms.linux;
license = licenses.gpl2;
};
}