lol
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 buildFlags = [ "CC=cc" ];
13
14 installPhase = ''
15 mkdir -pv "$out/bin"
16 mkdir -pv "$out/share/man/man1"
17 make DESTDIR="$out" BINDIR="$out/bin" PREFIX="" install
18 make DESTDIR="$out" MANPATH="$out/share/man" PREFIX="" install.man
19 '';
20
21 meta = with stdenv.lib; {
22 description = "Hides mouse pointer while not in use";
23 longDescription = ''
24 Unclutter hides your X mouse cursor when you do not need it, to prevent
25 it from getting in the way. You have only to move the mouse to restore
26 the mouse cursor. Unclutter is very useful in tiling wm's where you do
27 not need the mouse often.
28
29 Just run it from your .bash_profile like that:
30
31 unclutter -idle 1 &
32 '';
33 maintainers = with maintainers; [ domenkozar ];
34 platforms = platforms.unix;
35 };
36}