@@ -0,0 +1,34 @@
1+{ stdenv, fetchurl, xorg, x11 }:
2+
3+stdenv.mkDerivation rec {
4+ version = "1.2.sakura.5";
5+ vname = "1.2.5";
6+ name = "oneko-${vname}";
7+ src = fetchurl {
8+ url = "http://www.daidouji.com/oneko/distfiles/oneko-${version}.tar.gz";
9+ sha256 = "2c2e05f1241e9b76f54475b5577cd4fb6670de058218d04a741a04ebd4a2b22f";
10+ };
11+ buildInputs = [ xorg.imake xorg.gccmakedep x11 ];
12+
13+ configurePhase = "xmkmf";
14+
15+ installPhase = ''
16+ make install BINDIR=$out/bin
17+ make install.man MANPATH=$out/share/man
18+ '';
19+
20+ meta = with stdenv.lib; {
21+ description = "Creates a cute cat chasing around your mouse cursor";
22+ longDescription = ''
23+ Oneko changes your mouse cursor into a mouse
24+ and creates a little cute cat, which starts
25+ chasing around your mouse cursor.
26+ When the cat is done catching the mouse, it starts sleeping.
27+ '';
28+ homepage = "http://www.daidouji.com/oneko/";
29+ license = licenses.publicDomain;
30+ maintainers = [ maintainers.xaverdh ];
31+ meta.platforms = platforms.unix;
32+ };
33+}
34+