2016-05-15 05:43:14 +02:00
|
|
|
{ stdenv, fetchurl, xlibsWrapper, imake, libXScrnSaver, scrnsaverproto }:
|
2008-07-07 13:54:25 +02:00
|
|
|
|
2016-05-15 05:43:14 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2008-07-08 01:11:43 +02:00
|
|
|
name = "xautolock-2.2";
|
2016-05-15 05:43:14 +02:00
|
|
|
src = fetchurl {
|
2008-07-08 01:11:43 +02:00
|
|
|
url = "http://www.ibiblio.org/pub/Linux/X11/screensavers/${name}.tgz";
|
|
|
|
sha256 = "11f0275175634e6db756e96f5713ec91b8b1c41f8663df54e8a5d27dc71c4da2";
|
2008-07-07 13:54:25 +02:00
|
|
|
};
|
2016-05-15 05:43:14 +02: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 23:27:14 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-DSYSV";
|
2008-07-08 01:11:43 +02:00
|
|
|
makeFlags="BINDIR=\${out}/bin MANPATH=\${out}/man";
|
2008-07-07 13:54:25 +02:00
|
|
|
preBuild = "xmkmf";
|
|
|
|
installTargets = "install install.man";
|
2015-09-15 11:13:22 +02:00
|
|
|
buildInputs = [xlibsWrapper imake libXScrnSaver scrnsaverproto];
|
2016-05-15 05:43:14 +02: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 ];
|
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
|
|
|
}
|