anchor.diff:  
     preConfigure = "cd nss";
   
  -  makeFlags = [
  +  makeFlags = let
  +    cpu = stdenv.hostPlatform.parsed.cpu.name;
  +  in [
       "NSPR_INCLUDE_DIR=${nspr.dev}/include"
       "NSPR_LIB_DIR=${nspr.out}/lib"
       "NSDISTMODE=copy"
  
positive.code: { stdenv, fetchurl, nspr, perl, zlib, sqlite, fixDarwinDylibNames }:
  
  let
    nssPEM = fetchurl {
  
negative.code:     chmod 0755 $out/bin/nss-config
    '';
  
    postFixup = let
      isCross = stdenv.hostPlatform != stdenv.buildPlatform;
      nss = if isCross then buildPackages.nss.tools else "$out";
    in ''
      for libname in freebl3 nssdbm3 softokn3
      do '' +
      (if stdenv.isDarwin
  