anchor.diff: -{ stdenv, buildPackages, fetchurl, gettext
  -, hostPlatform, genPosixLockObjOnly ? false
  +{ stdenv, lib, fetchpatch, buildPackages, fetchurl, gettext
  +, genPosixLockObjOnly ? false
   }: let
  -  genPosixLockObjOnlyAttrs = stdenv.lib.optionalAttrs genPosixLockObjOnly {
  +  genPosixLockObjOnlyAttrs = lib.optionalAttrs genPosixLockObjOnly {
       buildPhase = ''
         cd src
         make gen-posix-lock-obj
  
positive.code:     sha256 = "0jfsfnh9bxlxiwxws60yah4ybjw2hshmvqp31pri4m4h8ivrbnry";
    };
  
    postPatch = ''
      sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure
    '' + stdenv.lib.optionalString stdenv.hostPlatform.isMusl ''
      ln -s lock-obj-pub.x86_64-pc-linux-musl.h src/syscfg/lock-obj-pub.linux-musl.h
    '';
  
  
negative.code:   nativeBuildInputs = [ gettext ];
  
    postConfigure =
      lib.optionalString stdenv.isSunOS
      # For some reason, /bin/sh on OpenIndiana leads to this at the end of the
      # `config.status' run:
      #   ./config.status[1401]: shift: (null): bad number
  