Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchbzr, xorg }: 2 3stdenv.mkDerivation rec { 4 pname = "xwinwrap"; 5 version = "4"; 6 7 src = fetchbzr { 8 url = "https://code.launchpad.net/~shantanu-goel/xwinwrap/devel"; 9 rev = version; 10 sha256 = "1annhqc71jcgx5zvcy31c1c488ygx4q1ygrwyy2y0ww743smbchw"; 11 }; 12 13 buildInputs = [ 14 xorg.libX11 15 xorg.libXext 16 xorg.libXrender 17 ]; 18 19 buildPhase = if stdenv.hostPlatform.system == "x86_64-linux" then '' 20 make all64 21 '' else if stdenv.hostPlatform.system == "i686-linux" then '' 22 make all32 23 '' else throw "xwinwrap is not supported on ${stdenv.hostPlatform.system}"; 24 25 installPhase = '' 26 mkdir -p $out/bin 27 mv */xwinwrap $out/bin 28 ''; 29 30 meta = with 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 didnt 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 didnt 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}