anchor.diff: -{ stdenv, fetchhg, pkgconfig, libixp_hg, txt2tags, dash, python, which
  +{ stdenv, fetchurl, unzip, pkgconfig, libixp_hg, txt2tags, dash, python, which
   , libX11 , libXrender, libXext, libXinerama, libXrandr, libXft }:
   
   stdenv.mkDerivation rec {
  
positive.code:     EOF
    '';
  
    buildInputs = [ pkgconfig libixp_hg txt2tags dash python which
                    libX11 libXrender libXext libXinerama libXrandr libXft ];
  
    # For some reason including mercurial in buildInputs did not help
    makeFlags = "WMII_HGVERSION=hg${rev}";
  
    meta = {
      homepage = "https://code.google.com/p/wmii/";
      description = "A small window manager controlled by a 9P filesystem";
      maintainers = with stdenv.lib.maintainers; [ kovirobi ];
      license = stdenv.lib.licenses.mit;
  
negative.code:   version = "hg-2012-12-09";
    name = "wmii-${version}";
  
    src = fetchurl {
      url = https://storage.googleapis.com/google-code-archive-source/v2/code.google.com/wmii/source-archive.zip;
      sha256 = "1wmkq14zvmfrmydl8752xz852cy7agrx3qp4fy2cc5asb2r9abaz";
    };
  
    # for dlopen-ing
    patchPhase = ''
      substituteInPlace lib/libstuff/x11/xft.c --replace "libXft.so" "$(pkg-config --variable=libdir xft)/libXft.so.2"
      substituteInPlace cmd/wmii.sh.sh --replace "\$(which which)" "${which}/bin/which"
    '';
  
  