anchor.diff:    configFile = lib.optionalString (conf != null)
       (writeText "config.def.h" conf);
   
  -  postPatch = lib.optionalString (conf != null) "cp ${configFile} config.def.h"
  +  postPatch = lib.optionalString (conf != null) "cp ${finalAttrs.configFile} config.def.h"
       + lib.optionalString stdenv.isDarwin ''
       substituteInPlace config.mk --replace "-lrt" ""
     '';
  
positive.code: , nixosTests
  }:
  
  stdenv.mkDerivation rec {
    pname = "st";
    version = "0.8.5";
  
    src = fetchurl {
      url = "https://dl.suckless.org/st/${pname}-${version}.tar.gz";
      hash = "sha256-6mgyID7QL/dBgry4raqexFTI+YnnkjLLhZZl4vVEqzc=";
    };
  
    inherit patches;
  
negative.code:     maintainers = with maintainers; [ andsild ];
      platforms = platforms.unix;
    };
  })
  