@@ -0,0 +1,54 @@
1+{ stdenv, fetchbzr, x11 }:
2+
3+let
4+ version = "4";
5+in
6+stdenv.mkDerivation {
7+ name = "xwinwrap-${version}";
8+
9+ src = fetchbzr {
10+ url = https://code.launchpad.net/~shantanu-goel/xwinwrap/devel;
11+ rev = version;
12+ sha256 = "1annhqc71jcgx5zvcy31c1c488ygx4q1ygrwyy2y0ww743smbchw";
13+ };
14+
15+ buildInputs = [
16+ x11
17+ ];
18+
19+ buildPhase = if stdenv.system == "x86_64-linux" then ''
20+ make all64
21+ '' else if stdenv.system == "i686-linux" then ''
22+ make all32
23+ '' else throw "xwinwrap is not supported on ${stdenv.system}";
24+
25+ installPhase = ''
26+ mkdir -p $out/bin
27+ mv */xwinwrap $out/bin
28+ '';
29+
30+ meta = with stdenv.lib; {
31+ description = "A utility that allows you to use an animated X window as the wallpaper";
32+ longDescription = ''
33+ XWinWrap is a small utility written a loooong time ago that allowed you to
34+ stick most of the apps to your desktop background. What this meant was you
35+ could use an animated screensaver (like glmatrix, electric sheep, etc) or
36+ even a movie, and use it as your wallpaper. But only one version of this
37+ app was ever released, and it had a few problems, like:
38+
39+ - Well, sticking didn’t work. So if you did a “minimize all” or “go to
40+ desktop” kind of thing, your “wallpaper” got minimized as well.
41+
42+ - The geometry option didn’t work, so you could not create, e.g., a small
43+ matrix window surrounded by your original wallpaper.
44+
45+ Seeing no-one picking it up, I decided to give it a bit of polish last
46+ weekend by fixing the above problems and also add a few features. And here
47+ it is, in its new avatar “Shantz XWinWrap”.
48+ '';
49+ license = licenses.hpnd;
50+ homepage = https://shantanugoel.com/2008/09/03/shantz-xwinwrap/;
51+ maintainers = with maintainers; [ infinisil ];
52+ platforms = platforms.linux;
53+ };
54+}