1{stdenv, fetchurl, xlibsWrapper}:
2
3stdenv.mkDerivation {
4 name = "unclutter-8";
5 src = fetchurl {
6 url = http://www.ibiblio.org/pub/X11/contrib/utilities/unclutter-8.tar.gz;
7 sha256 = "33a78949a7dedf2e8669ae7b5b2c72067896497820292c96afaa60bb71d1f2a6";
8 };
9
10 buildInputs = [xlibsWrapper];
11
12 installPhase = ''
13 mkdir -pv "$out/bin"
14 mkdir -pv "$out/share/man/man1"
15 make DESTDIR="$out" BINDIR="$out/bin" PREFIX="" install
16 make DESTDIR="$out" MANPATH="$out/share/man" PREFIX="" install.man
17 '';
18
19 meta = with stdenv.lib; {
20 description = "Hides mouse pointer while not in use";
21 longDescription = ''
22 Unclutter hides your X mouse cursor when you do not need it, to prevent
23 it from getting in the way. You have only to move the mouse to restore
24 the mouse cursor. Unclutter is very useful in tiling wm's where you do
25 not need the mouse often.
26
27 Just run it from your .bash_profile like that:
28
29 unclutter -idle 1 &
30 '';
31 maintainers = with maintainers; [ iElectric ];
32 platforms = platforms.unix;
33 };
34}