anchor.diff:  # cgit) that are needed here should be included directly in Nixpkgs as
   # files.
   
  -with lib;
  -
   let
     common = { version, sha256, patches ? [], withDocs ? false, extraMeta ? {} }:
      stdenv.mkDerivation rec {
  
positive.code:         else if stdenv.hostPlatform.isBSD
            then "./Configure BSD-generic${toString stdenv.hostPlatform.parsed.cpu.bits}"
          else if stdenv.hostPlatform.isMinGW
            then "./Configure mingw${optionalString
                                       (stdenv.hostPlatform.parsed.cpu.bits != 32)
                                       (toString stdenv.hostPlatform.parsed.cpu.bits)}"
          else if stdenv.hostPlatform.isLinux
  
negative.code: 
      postPatch = ''
        patchShebangs Configure
      '' + lib.optionalString (lib.versionOlder version "1.1.0") ''
        patchShebangs test/*
        for a in test/t* ; do
          substituteInPlace "$a" \
  