2022-10-30 15:09:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, libX11
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "unclutter";
|
|
|
|
version = "8";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchurl {
|
2021-09-18 10:52:07 +00:00
|
|
|
url = "https://www.ibiblio.org/pub/X11/contrib/utilities/unclutter-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "33a78949a7dedf2e8669ae7b5b2c72067896497820292c96afaa60bb71d1f2a6";
|
|
|
|
};
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildInputs = [ libX11 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
buildFlags = [ "CC=${stdenv.cc.targetPrefix}cc" ];
|
2020-04-24 23:36:52 +00: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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Hides mouse pointer while not in use";
|
|
|
|
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
|
|
|
|
the mouse cursor. Unclutter is very useful in tiling wm's where you do
|
|
|
|
not need the mouse often.
|
|
|
|
|
|
|
|
Just run it from your .bash_profile like that:
|
|
|
|
|
|
|
|
unclutter -idle 1 &
|
|
|
|
'';
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
platforms = platforms.unix;
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.publicDomain;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|