anchor.diff:      freetype
     ];
   
  -  preBuild = ''
  -    makeFlagsArray+=( PREFIX="${placeholder "out"}"
  -                      X11INC="${libX11.dev}/include"
  -                      X11LIB="${libX11}/lib"
  -                      XINERAMALIBS="-lXinerama"
  -                      XINERAMAFLAGS="-DXINERAMA"
  -                      FREETYPELIBS="-lfontconfig -lXft"
  -                      FREETYPEINC="${freetype.dev}/include/freetype2" )
  +  preConfigure = ''
  +    patchShebangs configure
     '';
  +
  +  desktopItems = [
  +    (makeDesktopItem {
  +      name = pname;
  +      exec = "berry";
  +      comment = meta.description;
  +      desktopName = "Berry Window Manager";
  +      genericName = "Berry Window Manager";
  +      categories = "Utility;";
  +    })
  +  ];
   
     meta = with lib; {
       description = "A healthy, bite-sized window manager";
  
positive.code: { lib, stdenv
  , fetchFromGitHub
  , libX11
  , libXext
  , libXft
  , libXinerama
  , fontconfig
  , freetype
  }:
  
  stdenv.mkDerivation rec {
    pname = "berry";
    version = "0.1.7";
  
    src = fetchFromGitHub {
      owner = "JLErvin";
      repo = pname;
      rev = version;
      sha256 = "sha256-2kFVOE5l1KQvDb5KDL7y0p4M7awJLrxJF871cyc0YZ8=";
    };
  
    buildInputs =[
      libX11
  
negative.code:     platforms = platforms.linux;
    };
  }
  # TODO: report upstream that `which` is not POSIX; the `command` shell builtin
  # should be used instead
  