anchor.diff:  
     installPhase = ''
       runHook preInstall
  +
       TERMINFO=$out/share/terminfo make install PREFIX=$out
  +
       runHook postInstall
     '';
   
  -  meta = {
  +  meta = with lib; {
       homepage = "https://st.suckless.org/";
       description = "Simple Terminal for X from Suckless.org Community";
       license = licenses.mit;
  
positive.code: , stdenv
  , fetchurl
  , pkg-config
  , writeText
  , libX11
  , ncurses
  , fontconfig
  , freetype
  , libXft
  , conf ? null
  , patches ? [ ]
  , extraLibs ? [ ]
  }:
  
  with lib;
  
  stdenv.mkDerivation rec {
    pname = "st";
  
negative.code: 
    src = fetchurl {
      url = "https://dl.suckless.org/st/${pname}-${version}.tar.gz";
      hash = "sha256-1C087OtNamXjLpClM249RG22EsP72evBeAvGyaAzRqY=";
    };
  
    inherit patches;
  
    configFile = lib.optionalString (conf != null)
      (writeText "config.def.h" conf);
  
    postPatch = lib.optionalString (conf != null) "cp ${configFile} config.def.h"
      + lib.optionalString stdenv.isDarwin ''
      substituteInPlace config.mk --replace "-lrt" ""
    '';
  
  