anchor.diff: -{ lib, stdenv, fetchFromGitHub, unzip, cosmopolitan, bintools-unwrapped }:
  +{ lib, stdenv, fetchFromGitHub, unzip, bintools-unwrapped }:
   
   stdenv.mkDerivation rec {
     pname = "cosmopolitan";
  
positive.code:     install o/cosmopolitan.a o/libc/crt/crt.o o/ape/ape.{o,lds} $out/lib
      runHook postInstall
    '';
  
    checkTarget = "o//test";
    doCheck = true;
  
    meta = with lib; {
      homepage = "https://justine.lol/cosmopolitan/";
  
negative.code:     sha256 = "sha256-UjL4wR5HhuXiQXg6Orcx2fKiVGRPMJk15P779BP1fRA=";
    };
  
    nativeBuildInputs = [ bintools-unwrapped unzip ];
  
    # slashes are significant because upstream uses o/$(MODE)/foo.o
    buildFlags = "o/cosmopolitan.h o//cosmopolitan.a o//libc/crt/crt.o o//ape/ape.o o//ape/ape.lds";
    checkTarget = "o//test";
    enableParallelBuilding = true;
  
    doCheck = true;
    dontConfigure = true;
    dontFixup = true;
  
    postPatch = ''
      patchShebangs build/
    '';
  
    installPhase = ''
      runHook preInstall
  