···11+{stdenv, fetchFromGitHub, libX11, libXi, libXt, libXfixes, libXext}:
22+33+stdenv.mkDerivation rec {
44+ version = "1.4";
55+ name = "xbanish-${version}";
66+77+ buildInputs = [
88+ libX11 libXi libXt libXfixes libXext
99+ ];
1010+1111+ src = fetchFromGitHub {
1212+ owner = "jcs";
1313+ repo = "xbanish";
1414+ rev = "5cbc51a88739bc7ebe3ea3114ec423890d180146";
1515+ sha256 = "0n5aiqfwx9ga8qjszymfmbnmygcracrgvvpmgll7mflp2jnvzq6j";
1616+ };
1717+1818+ preBuild = ''
1919+ makeFlagsArray+=("PREFIX=$out")
2020+ '';
2121+2222+ preInstall = ''
2323+ mkdir -p $out/bin
2424+ mkdir -p $out/man/man1
2525+ '';
2626+2727+ meta = {
2828+ description = "Hides mouse pointer while not in use";
2929+ longDescription = ''
3030+ xbanish hides the mouse cursor when you start typing, and shows it again when
3131+ the mouse cursor moves or a mouse button is pressed. This is similar to
3232+ xterm's pointerMode setting, but xbanish works globally in the X11 session.
3333+3434+ unclutter's -keystroke mode is supposed to do this, but it's broken[0]. I
3535+ looked into fixing it, but the unclutter source code is terrible, so I wrote
3636+ xbanish.
3737+3838+ The name comes from ratpoison's "banish" command that sends the cursor to the
3939+ corner of the screen.
4040+ '';
4141+ license = stdenv.lib.licenses.bsd3;
4242+ maintainers = [stdenv.lib.maintainers.choochootrain];
4343+ platforms = stdenv.lib.platforms.linux;
4444+ };
4545+}