2016-05-15 04:43:14 +01:00
|
|
|
{ stdenv, fetchurl, xlibsWrapper, imake, libXScrnSaver, scrnsaverproto }:
|
2008-07-07 12:54:25 +01:00
|
|
|
|
2016-05-15 04:43:14 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2008-07-08 00:11:43 +01:00
|
|
|
name = "xautolock-2.2";
|
2016-05-15 04:43:14 +01:00
|
|
|
src = fetchurl {
|
2008-07-08 00:11:43 +01:00
|
|
|
url = "http://www.ibiblio.org/pub/Linux/X11/screensavers/${name}.tgz";
|
|
|
|
sha256 = "11f0275175634e6db756e96f5713ec91b8b1c41f8663df54e8a5d27dc71c4da2";
|
2008-07-07 12:54:25 +01:00
|
|
|
};
|
2016-05-15 04:43:14 +01:00
|
|
|
patches = [
|
|
|
|
# https://gist.github.com/miekg/9430422
|
|
|
|
(fetchurl {
|
|
|
|
url = "https://gist.githubusercontent.com/miekg/9430422/raw/f00965cd63c497d320f028a9972d1185b0dae039/14-add-lockaftersleep-patch";
|
|
|
|
sha256 = "042lc5yyyl3zszll2l930apysd0lip26w0d0f0gjkl7sbhshgk8v";
|
|
|
|
})
|
|
|
|
];
|
2016-08-25 22:27:14 +01:00
|
|
|
NIX_CFLAGS_COMPILE = "-DSYSV";
|
2008-07-08 00:11:43 +01:00
|
|
|
makeFlags="BINDIR=\${out}/bin MANPATH=\${out}/man";
|
2008-07-07 12:54:25 +01:00
|
|
|
preBuild = "xmkmf";
|
|
|
|
installTargets = "install install.man";
|
2015-09-15 10:13:22 +01:00
|
|
|
buildInputs = [xlibsWrapper imake libXScrnSaver scrnsaverproto];
|
2016-05-15 04:43:14 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A program that launches 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 ];
|
2016-07-23 10:42:50 +01:00
|
|
|
platforms = platforms.unix;
|
2016-05-15 04:43:14 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
2008-07-07 12:54:25 +01:00
|
|
|
}
|