2021-01-11 08:54:33 +01:00
|
|
|
{lib, stdenv, fetchurl, xlibsWrapper}:
|
2012-01-08 15:01:17 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "unclutter-8";
|
|
|
|
src = fetchurl {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://www.ibiblio.org/pub/X11/contrib/utilities/unclutter-8.tar.gz";
|
2012-01-08 15:01:17 +01:00
|
|
|
sha256 = "33a78949a7dedf2e8669ae7b5b2c72067896497820292c96afaa60bb71d1f2a6";
|
|
|
|
};
|
|
|
|
|
2015-09-15 11:13:22 +02:00
|
|
|
buildInputs = [xlibsWrapper];
|
2012-01-08 15:01:17 +01:00
|
|
|
|
2021-02-16 12:48:46 +01:00
|
|
|
buildFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
2016-08-12 07:19:42 +02:00
|
|
|
|
2012-01-08 15:01:17 +01:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv "$out/bin"
|
|
|
|
mkdir -pv "$out/share/man/man1"
|
|
|
|
make DESTDIR="$out" BINDIR="$out/bin" PREFIX="" install
|
|
|
|
make DESTDIR="$out" MANPATH="$out/share/man" PREFIX="" install.man
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Hides mouse pointer while not in use";
|
2012-01-08 15:01:17 +01:00
|
|
|
longDescription = ''
|
|
|
|
Unclutter hides your X mouse cursor when you do not need it, to prevent
|
|
|
|
it from getting in the way. You have only to move the mouse to restore
|
2014-12-30 03:31:03 +01:00
|
|
|
the mouse cursor. Unclutter is very useful in tiling wm's where you do
|
2012-01-08 15:01:17 +01:00
|
|
|
not need the mouse often.
|
|
|
|
|
|
|
|
Just run it from your .bash_profile like that:
|
|
|
|
|
|
|
|
unclutter -idle 1 &
|
|
|
|
'';
|
2016-05-17 13:57:28 +02:00
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
2013-08-10 20:26:35 +02:00
|
|
|
platforms = platforms.unix;
|
2021-01-15 10:19:50 +01:00
|
|
|
license = lib.licenses.publicDomain;
|
2012-01-08 15:01:17 +01:00
|
|
|
};
|
|
|
|
}
|