anchor.diff:      sourceRoot="$sourceRoot/linux"
     '';
   
  -  postPatch = 
  -    /* Fix freetype path */ ''
  +  postPatch =
  +    /* Remove legacy scrotwm alias */ ''
         sed -i Makefile \
  -        -e 's,/usr/include/freetype2,${freetype}/include/freetype,'
  -    '' +
  -    /* Fix libswmhack.so path */ ''
  -      sed -i ../spectrwm.c \
  -        -e "s,/usr/local/lib/libswmhack.so,$out/lib/libswmhack.so,"
  +        -e '/scrotwm/d';
       '';
   
  -  preConfigure = ''
  +  configurePhase = ":";
  +
  +  preBuild = ''
       makeFlagsArray+=("PREFIX=$out")
     '';
   
  
positive.code: , xorg
  }:
  
  let
    inherit (stdenv.lib)
      replaceStrings;
  
    replace = v: replaceStrings ["."] ["_"] v;
  
    version = "2.7.2";
  in
  
  stdenv.mkDerivation rec {
    name = "spectrwm-${version}";
  
    src = fetchurl {
      url = "https://github.com/conformal/spectrwm/archive/"
          + "SPECTRWM_${replace version}.tar.gz";
      sha256 = "23a5b306c5cdfda05eba365b652eca34e87f0b4317c7ff8059813adaa1c55afb";
    };
  
    nativeBuildInputs = [
  
negative.code: { stdenv
  , fetchpatch
  , fetchFromGitHub
  , makeWrapper
  
  , dmenu
  